VBA Nightly Process Run

Gian624

Board Regular
Joined
Jul 23, 2009
Messages
92
I have an excel spreasheet where I would like to run a Ctrl+Shift+R in three seperate tabs at 9:00 PM every night. Does anyone know if that is possible? I am not a VBA user by rights so if you have a solution, please treat me as a novice.

Thank you Kindly,
Matt
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
CTRL-SHIFT-R is probably a custom shortcut to a Macro (VBA Code). If you go to the Run Macros window, you should be able to figure out what one that is.
Once you determine that macro name, you can call it and run it form a Workbook_Open event (see: Excel VBA Events - Easy Excel Macros).
If you select the sheet you want to run it against, then call that Macro, it will run upon opening the worksheet. You can repeat for the other two sheets too.

If you want to run it at a specific time every night, I would use Windows Scheduler to open that file at the time you want every night. Just add code at the end of your Workbook_Open event to close it when done.
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top