Why do I have that error?
![]()
Please Login or Register to view this content.
Why do I have that error?
![]()
Please Login or Register to view this content.
Last edited by jpxexcelforum; 09-10-2011 at 03:09 PM.
It's ambiguous because you have *two* "Private Sub Workbook_SheetChange" events.
You need to combine the tests within one "Private Sub Workbook_SheetChange" event.
Regards
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
One way:
![]()
Please Login or Register to view this content.
Regards
In actual fact, each section should be structured like:
![]()
Please Login or Register to view this content.
This is because you are making changes to the sheet within the change event.
Regards
Thanks. The first one didn't work though, I tried it. I tried the second one. Is this correct?
![]()
Please Login or Register to view this content.
In what way didn't it work?
I would have expected it to work but it would have gone through the routine more times than it needed to.
The second example looks OK ... but, if the first attempt failed, I don't see why this would be any more successful.
Regards
This works as I would expect it to:
![]()
Please Login or Register to view this content.
Regards
Works great! I saw where I made a mistake. I linked a cell to the same offset. This is exactly what I needed.
Thanks a lot! Mods please consider this thread solved! Thanks again TMShucks!!
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Everyone who confuses correlation and causation ends up dead.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks