Dear All,
When I open excel file, I kept the Call command to run my particular macros.
These macros visible in Alt + F8
I do not they visible but they run when file Open.
Any idea , how to do it?
Reg, RL
Dear All,
When I open excel file, I kept the Call command to run my particular macros.
These macros visible in Alt + F8
I do not they visible but they run when file Open.
Any idea , how to do it?
Reg, RL
I am not sure what you want. If you want to make them Private and not Public:
Please Login or Register to view this content.
Hi,
If I make Private then I cannot call the macro when workbook open!
Any other method!
Really? Did you put it in the ThisWorkbook's open event?
Another method is to make it a function.
Try this:
- Open the macro workbook
- Open the VBA Editor
- Select the ThisWorkbook module (Go to Project Explorer, you'll find this under 'Microsoft Excel Objects')
- Copy and paste the code below into ThisWorkbook module
- Save and close the workbook
- Reopen the workbook. The code should run. (If it doesn't then check that you enabled macros)
Please Login or Register to view this content.
*******************************************************
HELP WANTED! (Links to Forum threads)
Trying to create reusable code for Custom Events at Workbook (not Application) level
*******************************************************
One other method to run a Private routine from another object is:
Please Login or Register to view this content.
I try by both method!
Both works perfect.
Again, I appreciate your time, effort and help.
Reg, RL
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks