Hi, I have the following macro, that just publishes every sheet in PDF:
Sub ExportToPDFs()
Dim ws As Worksheet
For Each ws In Worksheets
ws.Select
nm = ws.Name
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="C:\Exports\" & nm & ".pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Next ws
End Sub
However, I have about 20 sheets before the point I'd like to start publishing from:
So, I'd like this to loop through every sheet, but only AFTER the sheet called "Template - FX Only"
Any ideas?
Sub ExportToPDFs()
Dim ws As Worksheet
For Each ws In Worksheets
ws.Select
nm = ws.Name
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="C:\Exports\" & nm & ".pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Next ws
End Sub
However, I have about 20 sheets before the point I'd like to start publishing from:
So, I'd like this to loop through every sheet, but only AFTER the sheet called "Template - FX Only"
Any ideas?