Hello
What if there is 2 or more than of " Private Sub Worksheet_SelectionChange(ByVal Target As Range)".
I received a compile error.
here is the sample code:
Please Login or Register to view this content.
Hello
What if there is 2 or more than of " Private Sub Worksheet_SelectionChange(ByVal Target As Range)".
I received a compile error.
here is the sample code:
Please Login or Register to view this content.
You need to combine them into one event handler. Should be straightforward the way they are written.
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
You may not have two Subs with the same name. If you need multiple actions for the same event, you have to use logic to put them into a single sub.
This has been compiled but not tested. If it does not do what you want please attach your file.
Please Login or Register to view this content.
Jeff
| | |·| |·| |·| |·| | |:| | |·| |·|
Read the rules
Use code tags to [code]enclose your code![/code]
Ok...I think this work.
How do I add message box between this code:
thanks.Please Login or Register to view this content.
I was able to figured it out.
Thank you all.
You're welcome.
Worked out what? I described what was necessary and 6SJ did it all for you.
Hi
I am not good combining them into one event handler. Is there a way to rename this code?
Private Sub Worksheet_SelectionChange(ByVal Target As Range
Like: Private Sub Worksheet1_SelectionChange....
Not if you want it to run automatically.
Rory
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks