L
leitek.com
Hi there,
I need to define a constant path where excel files are to be saved.
this will allow me to change the constant path in case I need to change
where the files are to be saved vs. having to change the code line by
line to reflect the correct path.
' CODE STARTS HERE
Sub SaveFile()
dim myfolder as string
myfolder = "\servername\folder\filename.xls"
Windows("filename.xls").Activate
ActiveWorkbook.SaveAs Filename:=_
"myfolder\filename.xls"
ActiveWindow.Close
End Sub
'********************************************************************************
I also like to bypass the confirmation pop up box that comes up to
confirm the save, can this be done?
thanks for all your help.
salooha
I need to define a constant path where excel files are to be saved.
this will allow me to change the constant path in case I need to change
where the files are to be saved vs. having to change the code line by
line to reflect the correct path.
' CODE STARTS HERE
Sub SaveFile()
dim myfolder as string
myfolder = "\servername\folder\filename.xls"
Windows("filename.xls").Activate
ActiveWorkbook.SaveAs Filename:=_
"myfolder\filename.xls"
ActiveWindow.Close
End Sub
'********************************************************************************
I also like to bypass the confirmation pop up box that comes up to
confirm the save, can this be done?
thanks for all your help.
salooha