Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Dear sir,
how can i call a function or procedure that contained in another workbook ? thanks Joe |
#2
![]() |
|||
|
|||
![]()
Hi
When you want to use an UDF or procedure in several workbooks, then save it into a module of Personal Macro Workbook (Personal.xls, it's created automatically, when you select Personal Macro Workbook as destination to save a newly-created macro, and later is loaded automatically whenever you start Excel). -- Arvi Laanemets (When sending e-mail, use address arvil<Attarkon.ee) "Joe" wrote in message ... Dear sir, how can i call a function or procedure that contained in another workbook ? thanks Joe |
#3
![]() |
|||
|
|||
![]()
One way:
You can also create a Reference between the two workbooks (if they are both open) from the Tools Menu. To make the reference, both the files should be open. After that, only the workbook you are using has to be open. tj "Joe" wrote: Dear sir, how can i call a function or procedure that contained in another workbook ? thanks Joe |
#4
![]() |
|||
|
|||
![]()
After that, only the workbook you are using has to be open.
The workbook which is referenced must be open; Excel will typically open it automatically for you. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "tjtjjtjt" wrote in message ... One way: You can also create a Reference between the two workbooks (if they are both open) from the Tools Menu. To make the reference, both the files should be open. After that, only the workbook you are using has to be open. tj "Joe" wrote: Dear sir, how can i call a function or procedure that contained in another workbook ? thanks Joe |
#5
![]() |
|||
|
|||
![]()
You can use Application.Run. E.g.,
Applicaiton.Run "Workbook1.xls!TheSub ' or Result = Application.Run ("Workbook1!TheFunction,1,2,3) -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Joe" wrote in message ... Dear sir, how can i call a function or procedure that contained in another workbook ? thanks Joe |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print all charts in a workbook (multiple worksheets) | Charts and Charting in Excel | |||
Update linked cells within a workbook??? | Links and Linking in Excel | |||
linking cell value in one workbook to a cell in another workbook | Links and Linking in Excel | |||
sotring worksheets in a workbook | Charts and Charting in Excel | |||
copy\paste from one workbook to another | Excel Discussion (Misc queries) |