Ok so i'm trying to write a small macro which will initiate my code on a day of the month, at a specified time of the day the macro will change, according to the different shifts we work here.
what i want it to do is to run the macro Formiddag1 when time time of the day is between 6 to 14
I already have my worksheet set up with =Today() and =Now() Formula's to get the specific time, so the cells they are pointing to contain the correct values and they update whenever the day changes, and the hour changes. I guess i could write it to Change the Macro to run at 6 only but it would be nice to have the code know to run the code in question if the time of day is between 6-14 , the code will run approx. every 15 minutes.
here is the code i have so far;
Please Login or Register to view this content.
Bookmarks