Hi,
I need a VBA to save my excel files with a different name.
Thanks in advance
Zaigham
Sub FileSaveAs()
'
' Make sure you change the value in between the quotes
' to the appropriate path where your workbook will be saved.
'
ChDir "C:\folder1"
ActiveWorkbook.SaveAs Filename:="C:\folder1\name of new file.xlsx", _
FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
End Sub
Sub SaveMe()
Dim fName As Variant
fName = Application.GetSaveAsFilename(InitialFileName:="", FileFilter:="Excel Files (*.XLS), *.XLS", Title:="Save As")
If fNameAndPath = False Then Exit Sub
ActiveWorkbook.SaveAs Filename:=fName
End Sub
Sub SaveMe()
Dim fName As Variant
fName = Application.GetSaveAsFilename(InitialFileName:="", FileFilter:="Excel Files (*.XLS), *.XLS", Title:="Save As")
If fName = False Then Exit Sub
ActiveWorkbook.SaveAs fileName:=fName
End Sub