Code:
Sub saveas()
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Text Files (*.txt), *.txt")
If fileSaveName <> False Then
MsgBox "Save as " & fileSaveName
End If
End Sub [\code]
when i run this code it seems to work but when i go to the directory where the new file is supposed to be save the file does not exist.