Hi,
Can someone help me change this recorded macro to save the pdf file name. Instead of test I want the file saved as the Worksheet Name and the value of B2.
So it might be DeptA 201917, or DeptB 201918 as examples.
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Data\test.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
True
I want this to all happen from another worksheet called Entry and all the Dept pages are actually hidden. With this formula I would need to unhide them and make them the activesheet, but could each sheet be saved without activating them?
Cheers for your help. I haven't done any VBA for about 5 years and I ant find anything in my old notes to assist.
Can someone help me change this recorded macro to save the pdf file name. Instead of test I want the file saved as the Worksheet Name and the value of B2.
So it might be DeptA 201917, or DeptB 201918 as examples.
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Data\test.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
True
I want this to all happen from another worksheet called Entry and all the Dept pages are actually hidden. With this formula I would need to unhide them and make them the activesheet, but could each sheet be saved without activating them?
Cheers for your help. I haven't done any VBA for about 5 years and I ant find anything in my old notes to assist.