i have a macro to save multiple files with different names, and dont want to click on save each time the save as dialog box pops up. Ive tried with Application.DisplayAlerts = False but it doesnt work. Any ideas?
'GED
Windows("boprov.xlsm").Activate
Worksheets("Hoja4").Select
Workbooks(ActiveSheet.Range("G53").Value).Activate
Worksheets("Bonos en Cartera").Select
pdfName = ActiveSheet.Range("AA2")
ChDir "C:\Users\GALILEO\Documents\CarterasPDF" 'This is where youo set a defult file path.
fileSaveName = Application.GetSaveAsFilename(pdfName, _
fileFilter:="PDF Files (*.pdf), *.pdf")
If fileSaveName <> False Then
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
fileSaveName _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
End If
The macro consist on many of these chunks of code for each workbook, and each time it finishes saving one, a dialog box asking me to click on save will show up. Thank you for your help!