hey there. here is my save sub but it overwirtes the current file with the same name (if it exists) rather than saving another copy with the 'name' & "(2)", 'name' & "(3)", etc.
does that make sense?
does that make sense?
Code:
Sub SaveFile()
Dim fPath As String, fName As String, SaveFile As String
'path
fPath = "\\Sr\SharedDocs\CSPSharedFILES\CPS Daily Invoice Log\"
fName = Format(Range("C2"), "(mm-dd-yyyy)") & " CPS Daily Invoice Log" & ".xls"
'full path and filename
SaveFile = fPath & fName
ActiveWorkbook.SaveCopyAs SaveFile
End Sub