Hi All:
I was playing around with a code that simply is saving a copy of the file with a specific name. It appears to work but the file is not saved (No Errors and it seems that it is saving but it doesn't?). What have I missed in regards to the coding?
I want the user to be able to select their own Path but the filename needs to be specific.
Here is the code:
THANKS to anyone that can assist,
Take Care,
Mark
I was playing around with a code that simply is saving a copy of the file with a specific name. It appears to work but the file is not saved (No Errors and it seems that it is saving but it doesn't?). What have I missed in regards to the coding?
I want the user to be able to select their own Path but the filename needs to be specific.
Here is the code:
Code:
Sub SaveFile()
'Automatic (DEFAULT) Naming of Spreadsheet
Dim TempFileName As String
TempFileName = FilePath & ActiveSheet.Range("C3") & "-" & ActiveSheet.Range("L3")
NewName = Application.GetSaveAsFilename(InitialFileName:=TempFileName, _
fileFilter:="Excel Files (*.xls), *.xls")
If NewName = False Then Exit Sub
Application.ScreenUpdating = True
Range("A1").Select
End Sub
THANKS to anyone that can assist,
Take Care,
Mark