am very new in vb. I have an Excel file which is Auto Saving in intervals. Now I want to stop this Auto Saving Function by Using another Command Button... plz help me ... their is the Code ...
Private Sub AutoSave_Cmd_click()
dTime = Time + TimeValue("00:00:05") 'Set Time as per requirement
With Application
.OnTime dTime, "AutoSaveAs" .EnableEvents = False .DisplayAlerts = False ThisWorkbook.SaveAs "C:\<My File Path>\Auto_Save_MACRO.xls" .EnableEvents = True Application.EnableEvents = False
End With
End Sub
Now my question is what will be the code to stop Auto Save function Through "Stop_Auto_Save_Cmd" command button? Please Help Me ... Thanks in advance ...
Private Sub Stop_Auto_Save_Cmd_click()
'What will be the code here?
End Sub