VB code based on time/day

shanec7401

New Member
Joined
May 9, 2011
Messages
9
Hi
I am looking for VB code which will go to a certain cell in a separate worksheet depending on the day and time. In my file I have 3 worksheets.
After a specified idle time of say 90 seconds I want to switch to sheet 2.
Depending on the day and time I want to go to a specific cell in sheet 2.
Example
Between 08:00 and 20:00 Monday go to cell A1
Between 20:00 Monday and 08:00 Tuesday go to cell A139
Between 08:00 Tuesday and 20:00 Tuesday go to cell A227 etc

can anyone shed any light on this?

thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,566
Messages
6,179,551
Members
452,927
Latest member
rows and columns

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