Automating the recalculate F9 key function.

tigrouh

New Member
Joined
Aug 10, 2005
Messages
33
G'day, I have a worksheet that calculates results based on the difference between 2 dates. In one cell I have a start date e.g. 01/07/06 09:00:00 and in another cell I have the current date and time i.e. the formula NOW(). Hitting the F9 key every few seconds refreshes the current time and hence recalculates my values. I wonder if there is a way of using code or a macro to automate this whilst the workbook is open, preferably with a facility to adjust the frequency at which recalculations are performed e.g. every 2 seconds or every 10 seconds. As ever any help gratefully appreciated!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,066
Office Version
  1. 365
Have a look at the ontime method in VBA help.
 

Forum statistics

Threads
1,176,126
Messages
5,901,538
Members
434,899
Latest member
powerappsjoker99

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
Top