ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Referencing Code from another project (https://www.excelbanter.com/excel-programming/308258-referencing-code-another-project.html)

Robert[_16_]

Referencing Code from another project
 
An Excel application containing modules creates another
workbook. At this point, the application looks like this:

vbaproject(aaa)
module1
module2

vbaproject(bbb)
sheet1
sheet2

From sheet1 in project bbb, I wish to call some code
contained in Module 1 of project aaa. How do I do this?

Vasant Nanavati

Referencing Code from another project
 
Application.Run "aaa.xls!MySubName"

--

Vasant



"Robert" wrote in message
...
An Excel application containing modules creates another
workbook. At this point, the application looks like this:

vbaproject(aaa)
module1
module2

vbaproject(bbb)
sheet1
sheet2

From sheet1 in project bbb, I wish to call some code
contained in Module 1 of project aaa. How do I do this?





All times are GMT +1. The time now is 05:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com