time&date triggered macro to open , run , save close workbook

have this workbook where i run macro on determined date and time , need to automate this process ,
every week i change data in 5 data grids , in data grids there are between 1 and 60 date&time cells ,

 after initial run on 1.4 10:00 data looks like this:

        A        ...                       C            ...                 E         ...
1  7.4. 19:00                  10.4. 16:00              14.4. 11:00
2                                    10.4. 19:00              14.4. 20:45
3                                    11.4. 13:00
4                                    11.4. 14:30
5                                    11.4. 16:00
6                                    11.4. 17:00
7                                    13.4. 21:00
8                                    14.4. 20:45
9                                    14.4. 20:45

workbook waits for 1 date&time value that will occur , in this example is in cell A1 ,
four hours before time in cell A1  on 7.4 13:00 workbook opens , runs macro "Start" , saves and close workbook ,
 now workbook waits for 2 date&time cell C1 and  repeats procedure open 4 hours before  (10.4 12:00) , runs macro "Start" , saves and close workbook ,
 on 3 date&time cell C3 , open 4 hours before (11.4 9:00) , runs macro "Start" , saves and close workbook ,  
 4 date&time cell C7 , open 4 hours before (13.4 17:00) , runs macro "Start" , saves and close workbook ,

after 4 run macro stops  automation of opening  workbook , then i change date&time and next round  of automation begins .

how to automate this process


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You need to be a bit clearer.
You have said that you choose a DateTime and the macro runs 4 hours BEFORE that time.
then the Workbook WAITS for Time2 (10.4. 19:00) and runs 4 hours before that?

Could you provide a sample workbook?
thmhAuthor Commented:
here is workbook ,sorry for bad english
Rob HensonFinance AnalystCommented:
For the file to run automatically at a specific time you would have to run through Windows scheduler. However you want the criteria of the file to change afterwards.

How about creating a separate .BAT file that opens the Excel file. The routine in Excel would then be in the Workbook Open routine and would include a stage that creates the .BAT file with the new date and time criteria for opening the file again.

Rob H

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thmhAuthor Commented:
Rob H,
if i understand :
-bat is created when i manually open excel and run "create bat"
-bat opens excel on 1 date&time
-excel creates new bat
-new bat is scheduled to 2 date&time
this could work ,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.