Arunkumar Sekar
New Member
Hi ,
I am using excel sheet to get the reuters market price real time.I used macro to schedule and copy the current worksheet and saveCopy as another work sheet.
But After some times if any one open the other excel sheet,and open the excel option window,my macro stopped running.
Please help me
I am using excel sheet to get the reuters market price real time.I used macro to schedule and copy the current worksheet and saveCopy as another work sheet.
But After some times if any one open the other excel sheet,and open the excel option window,my macro stopped running.
Please help me
Code:
Private Seconds As Integer
Sub Workbook_Open()
Seconds = 5
ScheduleSaving
End Sub
Sub ScheduleSaving()
Application.OnTime Now + Seconds / 24 / 3600, "ThisWorkbook.SaveMyWorkbook", Now + 1.5 * Seconds / 24 / 3600
End Sub
Sub SaveMyWorkbook()
Application.DisplayAlerts = False
ThisWorkbook.SaveCopyAs "C:\OSTS\Reuters_tmp.xls"
Application.DisplayAlerts = True
ScheduleSaving
End Sub
Last edited by a moderator: