![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 97
|
Is it possible to have a timer event in an excel application to refresh the worksheet?
|
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Do you mean Calculate? If so have a look at the Application.OnTime method in VBA.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 97
|
Sorry, a little unclear. Yes, I need for my excel app to calculate entire sheet every, say 5 mins, this app will be open more then not and a refresh (or recalculate) is essential to the purpose. Ideas?
|
|
|
|
|
|
#4 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi Charlie
In a standard module (alt+F11 Insert>Module) put: Sub StartOff() Application.OnTime Now + "00:05:00", "StartOff" Application.Calculate Run "StartOff" End Sub In the Workbook module (right click on Excel icon left of "File", select "view Code" put: Private Sub Workbook_Open() Run "StartOff" End Sub |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 97
|
Thanks a bunch Dave...
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|