powerpackinduo
Board Regular
- Joined
- Jul 28, 2005
- Messages
- 128
I have a macro in a workbook with code in the Open event that opens a workbook: daily.xls
In the daily.xls file there is a UserForm with code.
In the UserForm code there are private subs. (private sub name: Update)
How do I have my initial workbook open the daily.xls file and run the private subs found in the userform code?
I've tried the following in the open event:
and I get the message: The macro ''Daily.xls'!Update' cannot be found.
In the daily.xls file there is a UserForm with code.
In the UserForm code there are private subs. (private sub name: Update)
How do I have my initial workbook open the daily.xls file and run the private subs found in the userform code?
I've tried the following in the open event:
Code:
Workbooks.Open "C:\daily.xls"
Application.Run ("'daily.xls'!Update")