OK think I have too much code since it seems to be running about 8 times instead of the once.
This is a sample of what I have in the thisworkbook code
and here is what I have in one of the macros I call (names of the servers have been changed)
do I need all of this? I have 48 macros that run at different hours.
Thanks for all the help
This is a sample of what I have in the thisworkbook code
Code:
Application.OnTime TimeValue("03:00:00"), "Macro03"
Application.OnTime TimeValue("03:03:00"), "Macro04count"
Application.OnTime TimeValue("03:15:00"), "Macro04"
Application.OnTime TimeValue("03:30:00"), "Macro04"
Application.OnTime TimeValue("03:45:00"), "Macro04"
Application.OnTime TimeValue("04:00:00"), "Macro04"
Application.OnTime TimeValue("04:03:00"), "Macro05count"
Application.OnTime TimeValue("04:15:00"), "Macro05"
Application.OnTime TimeValue("04:30:00"), "Macro05"
Application.OnTime TimeValue("04:45:00"), "Macro05"
Application.OnTime TimeValue("05:00:00"), "Macro05"
and here is what I have in one of the macros I call (names of the servers have been changed)
Code:
Application.Visible = False
Application.OnTime TimeValue("03:15:00"), "Macro04"
Application.OnTime TimeValue("03:30:00"), "Macro04"
Application.OnTime TimeValue("03:45:00"), "Macro04"
Application.OnTime TimeValue("04:00:00"), "Macro04"
Sheets("04").Select
With Selection.QueryTable
.Connection = "URL;http://myserver"
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
ActiveWorkbook.PublishObjects.Add(xlSourceChart, _
"S:\mywebpage1.htm" _
, "Peak", "", xlHtmlStatic, "DevXSample_16365", _
"my webpage 1").Publish (True)
ActiveWorkbook.PublishObjects.Add(xlSourceChart, _
"S:\mywebpage2.htm" _
, "Combined", "", xlHtmlStatic, "DevXSample_16365", _
"my webpage 2").Publish (True)
ActiveWorkbook.PublishObjects.Add(xlSourceChart, _
"S:\mywebpage3.htm" _
, "Combined", "", xlHtmlStatic, "DevXSample_16365", _
"my webpage 3").Publish (True)
Application.Visible = True
do I need all of this? I have 48 macros that run at different hours.
Thanks for all the help