I have a worksheet with a drop down list in "B2" to filter the data and I have a code to save the viewed information in the sheet as PDF to external forlder "D:\Desktop\Daily Tasks" and to name the file based on cell value in "C2"
My drop down list has only 5 items (NH01,NH03,NH04,NH05,NH06) and I'm looking for a code to perform both of navigating the drop down list in sequance and save every sheet as PDF to this folder "D:\Desktop\Daily Tasks"
this is my code
My drop down list has only 5 items (NH01,NH03,NH04,NH05,NH06) and I'm looking for a code to perform both of navigating the drop down list in sequance and save every sheet as PDF to this folder "D:\Desktop\Daily Tasks"
this is my code
VBA Code:
[Sub Save_pdf()
ReportID = Range("B2")
ReportName = Range("C2")
Path = "D:\Desktop\Daily Tasks\"
fname = ReportName
MsgBox "Ok Done"
ActiveSheet.ExportAsFixedFormat Type:=x1TypePDF, ignoreprintareas:=False, Filename:=Path & fname
End Sub]