hopelessliar
Technical User
Below is my code to automatically update a file when users open this workbook. What I want to know is, can I prevent the dialogue asking whether to replace the existing file and just automatically replace it?
Thanks
Sub Aut
pen()
'Routine to automatically update the reccydata file in the root of users' drives
Workbooks.Open FileName:= _
"M:\PLANNING\Develop\Luc\New Reccy\J&J Reccy\JJreccydata_Master.xls" _
, UpdateLinks:=3
ActiveWorkbook.SaveAs FileName:="C:\JJreccydata.xls", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWindow.Close
MsgBox ("Data File Updated - Pressing OK will close this workbook"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
ActiveWindow.Close
End Sub
Thanks
Sub Aut
'Routine to automatically update the reccydata file in the root of users' drives
Workbooks.Open FileName:= _
"M:\PLANNING\Develop\Luc\New Reccy\J&J Reccy\JJreccydata_Master.xls" _
, UpdateLinks:=3
ActiveWorkbook.SaveAs FileName:="C:\JJreccydata.xls", FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWindow.Close
MsgBox ("Data File Updated - Pressing OK will close this workbook"
ActiveWindow.Close
End Sub