I have a macro that refreshes 12 pivot tables during the night. I have it set to 4AM EDT right now. My questions are:
1.) If I have it stored on a network drive, what will happen? Will it run?
2.) If I don't specify a time for it to end, will it run everynight?
3.) Do I have to run it from a specific machine?
4.) Do I have to have the file which contains the code open?
Any help would be appreciated.
Thanks,
SherryO
[VBA]
Application.OnTime EarliestTime:=TimeValue("17:00:00")
Workbooks.Open Filename:="C:\_sjr\ProjectAnalysis\ProRepPTs.xls"
Workbooks("proreppts.xls").Activate
Sheets("Stat").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
Sheets("ActCost").Select
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
Workbooks("ProRepPTs.xls").Close xlSaveChanges = 1
[/VBA]
Edited 10-Apr-07 by geekgirlau. Reason: insert vba tags