lafhunting
New Member
- Joined
- Apr 6, 2013
- Messages
- 6
I have excel 2007
I have a excel macro to create a PDF for all my worksheets but I just want to save certain sheets as PDf not all of them.(the first four worksheets I do not need as PDF) this is what I have
Sub CreatePDf()
For sh = 1 To sheets.count
sheets (sh).ExportAsFixedFormat Type:=xlTypePDF, filename:=
"C:\*****" & sheets (sh).Name & ".PDF",_
Quality:=xlQualityStandard, IncludeDocProperties:=True,_
IgnorePrintAreas:=False, openafterpublish:=false
next
End Sub
I have a excel macro to create a PDF for all my worksheets but I just want to save certain sheets as PDf not all of them.(the first four worksheets I do not need as PDF) this is what I have
Sub CreatePDf()
For sh = 1 To sheets.count
sheets (sh).ExportAsFixedFormat Type:=xlTypePDF, filename:=
"C:\*****" & sheets (sh).Name & ".PDF",_
Quality:=xlQualityStandard, IncludeDocProperties:=True,_
IgnorePrintAreas:=False, openafterpublish:=false
next
End Sub