You cann't
You have to tell Excel where to save to or it will use your default location, which for most people is My Documents & you also need to give it the saveas filename
You can use code to find out the path of the existing workbook & workbook name & have your code modify them as required
Here is 2 versions
Version 1 leaves you the workbook open that has string in its name
Version2 leaves you with the workbook open with the same name before you saved
Sub SaveVersion1()
Dim sPath As String
Dim sFname As String
sPath = ThisWorkbook.Path
sFname = ThisWorkbook.Name
ThisWorkbook.Save
ThisWorkbook.SaveAs Filename:=sPath & "\" _
& Left(sFname, Len(sFname) - 4) & " String.xls"
End Sub
Sub SaveVersion2()
Dim sPath As String
Dim sFname As String
sPath = ThisWorkbook.Path
sFname = ThisWorkbook.Name
ThisWorkbook.SaveAs Filename:=sPath & "\" _
& Left(sFname, Len(sFname) - 4) & " String.xls"
ThisWorkbook.SaveAs Filename:=sPath & "\" & sFname
End Sub
Bookmarks