[Excel] Running Macro Automatically
Issue
I have a macro in excel which needs to be run twice a day and I dont even want to open the excel sheet. How can I make this process automatic?
If I can convert the macro to Exe file, maybe I can put it to my task manager. Please advice.
Solution
Add the macro code to excel open event.
You can open an excel file and make it to run twice a day
by creating a new task and adding its path to "Scheduled Tasks" within double quotes under:
Start>>Programs>>Accessories>>System Tools
- In the VBE window, in the 'Thisworkbook' page select workbook then add the following three lines:
Private Sub Workbook_Open()
' add code here
End Sub
workbooks("Workbookname").save
workbooks("Workbookname").close
If Hour(Time) = "24" then
Thanks to
Excelguru for this tip on the forum.