Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to have a module insert a piece of code
into the each worksheets "WorkSheet_SelectionChange" function. The worksheets are newly created so that is why I have to insert the code from a module. Thanks, John |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
Try this site: http://www.cpearson.com/excel/codemods.htm -- sb "John" wrote in message ... Is there a way to have a module insert a piece of code into the each worksheets "WorkSheet_SelectionChange" function. The worksheets are newly created so that is why I have to insert the code from a module. Thanks, John |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If it's all the same code, maybe you could use:
Workbook_SheetSelectionChange It's under the ThisWorkbook module. Private Sub Workbook_SheetSelectionChange _ (ByVal Sh As Object, ByVal Target As Range) When you're testing, add a line (just to see how it passes important info): msgbox sh.name & vblf & target.address John wrote: Is there a way to have a module insert a piece of code into the each worksheets "WorkSheet_SelectionChange" function. The worksheets are newly created so that is why I have to insert the code from a module. Thanks, John -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Find" function question - No code required | Excel Discussion (Misc queries) | |||
Lost "File Menu" - now it's "Edit / View / Insert.." but no "F | Excel Discussion (Misc queries) | |||
Change the "Insert Function" display for mail merge | Excel Worksheet Functions | |||
SUM Calculations Returns #VALUE but displays correct total with "Insert Function"=fx | Excel Worksheet Functions | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |