Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Automatically Refreshing Data at 12am
I want to set my worksheet that will always be open on my machine to
automatically refresh the data at 12am. Is the only way to do that with a macro? If so, how do I go about that. Thanks! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Automatically Refreshing Data at 12am
You can use OnTime to schedule a macro to run at a set time. See
http://www.cpearson.com/excel/ontime.htm -- HTH Bob Phillips (remove nothere from the email address if mailing direct) wrote in message oups.com... I want to set my worksheet that will always be open on my machine to automatically refresh the data at 12am. Is the only way to do that with a macro? If so, how do I go about that. Thanks! |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Automatically Refreshing Data at 12am
So I can do something like this?
Public RunWhen As Double Sub StartTimer() RunWhen = Time() = #12:00:00 AM# + TimeSerial(24, 0, 0) Application.OnTime earliesttime:=RunWhen, procedu="The_Sub", _ schedule:=True End Sub Sub The_Sub() ActiveWorkbook.RefreshAll StartTimer End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
From several workbooks onto one excel worksheet | Excel Discussion (Misc queries) | |||
DELETE DUPLICATE DATA IN A SHEET AUTOMATICALLY | Excel Discussion (Misc queries) | |||
Automatically pasting worksheet data to new worksheet with formulas | Excel Worksheet Functions | |||
Pasting data without the worksheet automatically delimiting it? | Excel Discussion (Misc queries) | |||
Line Graph Data Recognition | Charts and Charting in Excel |