Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Reference code in another workbook from a calling workbook
Is there a way to reference or call code from one workbook to another?
Example Workbook1 had a module called Mod1 and a sub called Sub1 Workbook2 had a module called Mod2 and a sub called Sub2 Can sub1 call sub2 Sub CallAcrossWorkbooks() Call workbooks(€œBook2€).modules(€œMod2€).Procedu re(€œSub2€) End Sub Thanks in advance, Stewart |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Reference code in another workbook from a calling workbook
If both workbooks are open:
application.run "book2.xls!mod2.sub2" Datasort wrote: Is there a way to reference or call code from one workbook to another? Example Workbook1 had a module called Mod1 and a sub called Sub1 Workbook2 had a module called Mod2 and a sub called Sub2 Can sub1 call sub2 Sub CallAcrossWorkbooks() Call workbooks(€œBook2€).modules(€œMod2€).Procedu re(€œSub2€) End Sub Thanks in advance, Stewart -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calling macros in another workbook | Excel Worksheet Functions | |||
copy and paste using code from workbook to workbook | Excel Discussion (Misc queries) | |||
What workbook is calling the function | Excel Programming | |||
calling sub from another workbook | Excel Programming | |||
Calling macros from another XL Workbook | Excel Programming |