User prompt for CSV format
Thanks Kenneth.
One thing, it prompts you "do you want to save the changes you made to ..."
Can I avoid this? They answer should always be yes.
MrRJ
"Kenneth Hobson" wrote:
Dim FName As Variant
FName = Application.GetSaveAsFilename( _
vbNullString, "CSV Files (*.csv),*.csv")
If FName = False Then
Debug.Print "user cancelled"
Else
ActiveWorkbook.SaveAs Filename:=FName, _
FileFormat:=xlCSV, CreateBackup:=False
ActiveWindow.Close
End If
|