Application.GetSaveAsFilename - Autosave with VBA
Is it possible to save a file file without "save as dialog box"?
the file and name is generated after click on a button, now I need to save that file without "save as dialog box"
EDIT : the question was NOT about saving excel file.
You can use Workbook.SaveAs
For further information, check the following webpage:
Workbook.SaveAs Method (Excel)
Syntax:
Workbook.SaveAs(FileName, FileFormat, Password, WriteResPassword, ReadOnlyRecommended, CreateBackup, AccessMode, ConflictResolution, AddToMru, TextCodepage, TextVisualLayout, Local)
DataType = String; Description = File Full Path; DefaultValue = ""
DataType = XlFileFormat; Description = File Extension;
DataType = String; Description = Protection Password; DefaultValue = ""
DataType = String; Description = Write Reservation Password; DefaultValue = ""
DataType = Boolean; Description = Show Read-Only Recommended Message; DefaultValue = False
DataType = Boolean; Description = Create Backup File; DefaultValue = False
DataType = XlSaveAsAccessMode; Description = Workbook Access Mode; DefaultValue = XlSaveAsAccessMode.xlNoChange
DataType = XlSaveConflictResolution; Description = Save Conflict Resolution; DefaultValue = XlSaveConflictResolution.xlUserResolution
DataType = Boolean; Description = Add to Recent Files; DefaultValue = False
Description = Ignored for all languages in Microsoft Excel.
Description = Ignored for all languages in Microsoft Excel.
DataType = Boolean; Description = Saving Local Language; DefaultValue = False