Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, I'm trying to call this procedure located in the MyCode module:
Sub Worksheet_Change(ByVal Target As Range) code here End Sub (the above code works properly when it is in the Sheet1 (Budget) module) From this procedure which is in the Sheet1 (Budget) module. How do I write the code below? The best I can come up with is: Sub YearChange() Call MyCode.Worksheet_Change End Sub It does not work, I don't know how to handle the argument within the parenthesis. Also, I don't think I need to include the MyCode as part of the path, but a similar Call procedure I've done without arguments only works if I include this in the path. What might I have done wrong. I would appreciate anyone's help with writing the bottom code correctly. Gratefully, Harold |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Re : Excel To Call Sub and Assign Arguments | Excel Programming | |||
call a macro with arguments in a Command Button | Excel Programming | |||
arguments | Excel Discussion (Misc queries) | |||
Call Center Management: How to calculate 'cost per call' | Excel Discussion (Misc queries) | |||
call a sub with arguments from Worksheet_FollowHyperlink event | Excel Programming |