Hey guys,
I have this simple code to export as PDF, range AB52 is where it pulls the file name to save as... is it possible to have multiple ranges for the code to look for? I tried "range ("AB52:AB54")" would not work. Is this even possible? If one cell is empty look on the other ones for the file name?
Thank you!
I have this simple code to export as PDF, range AB52 is where it pulls the file name to save as... is it possible to have multiple ranges for the code to look for? I tried "range ("AB52:AB54")" would not work. Is this even possible? If one cell is empty look on the other ones for the file name?
Thank you!
VBA Code:
Sub Saveworksheetaspedfinwalmartfolder()
'Save Active Sheet(s) as PDF
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="V:\DEPARTMENTS\TRAINING\COORDINATION\Invoicing Backup\" & Range("AB52"), openafterpublish:=True
End Sub