I'm currently using Task Scheduler to open a workbook. That workbook has a Workbook Open vba that opens the Target Workbook and refresh all. I don't use Task Scheduler to open the target workbook because its being opened through out the day for viewing.
It works, I'm just wondering if anyone uses a different method that's better than the one I'm using.
It works, I'm just wondering if anyone uses a different method that's better than the one I'm using.
VBA Code:
Sub Workbook_Open()
With Workbooks.Open("C:Path\.xlsm")
.RefreshAll
Application.Wait Now + TimeValue("00:00:02")
.Save
.Close True
End With
Workbooks("Workbook.xlsm").Save
MsgBox "Update complete"
End Sub