NewToVBA
asked on
Worksheet_SelectionChange
Hello Experts - Is it possible to control any sheet in workbook off one module with code
Worksheet_SelectionChange( ByVal Target As Excel.Range)? As somebody here advised me earlier, rather than copying same macro to each sheet I could use this avenue instead.
For example, I want to do this when click on any cell in sheet1 through Sheet20 ...
Worksheet_SelectionChange( ByVal Target As Excel.Range)
msgbox activecell.value
Cheers, V
Worksheet_SelectionChange(
For example, I want to do this when click on any cell in sheet1 through Sheet20 ...
Worksheet_SelectionChange(
msgbox activecell.value
Cheers, V
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Read Wayne's post again.
>> The code for this would go in the ThisWorkbook module.
>> The code for this would go in the ThisWorkbook module.
ASKER
Thank you, Wayne!
ASKER
Hi Teylyn - thank you for your comment
cheers, v
cheers, v
ASKER
Private Sub Workbook_SheetSelectionCha
MsgBox ActiveSheet.Name
End Sub
tks, V