Hi.
We have an excel file that has a form with a button to "create a new database".
This sheet is used by several people. And the first one to use the sheet any particular week needs to create the new database. Unfortunately the creation of this database can take up to an hour to run.
Now they want to automatically have this macro run every Sunday evening.
I can create a "scheduled task" on a server that opens the sheet on Sunday.
But I have no idea how to program VB so that when the sheet is opened on any Sunday at say 10pm, that it will create this database automatically.
Could somebody please help?
What I need:
- A macro that runs automatically when the file is opened on Sunday.
- This macro needs to call the "creation of the database" function.
- After this macro has run automatically it needs to close the sheet.
A big THANK YOU if you are able to help.
grtz,
Twan
P.S. This is the code from the form:
This is the code of the database creation:
Bookmarks