autorefresh after 5 mnts

G2K

Active Member
Joined
May 29, 2009
Messages
355
hi all,

i want to refresh my worksheet after 5 minutes interval even if there is no any change in worksheet.i have a small tracker which allow users to store and retrive data from Ms-Access. i want a Message popup after every five minute

Like: -

Application.OnTime Now + TimeValue("00:00:05"), "my_Procedure"

how to call "my_Procedure" after 5 minues interval ??


thanks in advance
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Like

Code:
Sub MyProc()
Application.OnTime Now + TimeValue("00:05:00"), "myProc"
ThisWorkbook.RefreshAll
End Sub
 
Upvote 0
thanks Dave for your quick reply.

but it is not working here. i get the message only once when i call the procedure by clicking a command button.
 
Upvote 0
5 minutes is a long time

Test on a short time period like 5 seconds

Code:
Sub MyProc()
Application.OnTime Now + TimeValue("00:00:05"), "myProc"
ThisWorkbook.RefreshAll
MsgBox "a refresh"
End Sub

This should produce a msgbox along with the refresh, you will need to click OK on the msgbox to continue
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,535
Members
449,037
Latest member
tmmotairi

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