lorrie3292
Programmer
I created this macro to force the user to save the file as (something else) so that the original file is preserved:
Sub Save_file_as()
'Bring up SaveAs menu
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Excel Files (*.xls), *.xls")
'If user specified file name, perform Save and display msgbox
If fileSaveName <> False Then
ActiveWorkbook.SaveAS Filename:=fileSaveName, FileFormat:=xlNormal
MsgBox "THIS FILE WAS SAVED AS " & fileSaveName
End If
End Sub
When the dialog box comes up to type in the new name I would like the file name that appears to automatically be deleted (empty). What code do I need to use and on what line?
Thank you!
Sub Save_file_as()
'Bring up SaveAs menu
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Excel Files (*.xls), *.xls")
'If user specified file name, perform Save and display msgbox
If fileSaveName <> False Then
ActiveWorkbook.SaveAS Filename:=fileSaveName, FileFormat:=xlNormal
MsgBox "THIS FILE WAS SAVED AS " & fileSaveName
End If
End Sub
When the dialog box comes up to type in the new name I would like the file name that appears to automatically be deleted (empty). What code do I need to use and on what line?
Thank you!