I am trying to create a print to PDF Macro for a worksheet that uses a drop down list. I want each option in the drop down list to be saved as its own PDF.
This is my code:
Sub Print_To_PDF()
Sheets("MS Wall Summary Daily View").Activate
Dim vRws As Long, vRng As Range
Dim d As Range, d8 As Range, Wst As Worksheet
Dim fPathFile As String
fPathFile = [NewStoreRollout]
Set Wst = Worksheets("MS Wall Summary Daily View")
Set d8 = Wst.Range("D8")
With Wst
vRws = .Cells(Rows.Count, "A").End(x1Up).Row
Set vRng = Range(.Cells(2, "A"), .Cells(vRws, "A"))
.PageSetup.PrintArea = "$C$2:$M$116"
End With
For Each d In vRng.Cells
d8 = d
Wst.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fPathFile,
Quality:=xlQualityStandard, _IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
Next d
End Sub
My Drop down starts in A1, though I want the PDFs starting in A2. The cell with the dropdown list is d8
The Cell named "NewStoreRollout" contains my filepath that I want the PDfs saved to.
Thanks


_IncludeDocProperties:=Trueis the problem; might that beIncludeDocProperties:=True?Filename:=fPathFile, _