I have a drop down list in cell AD5 of Sheet1. When I select each item in the list, Sheet1 updates with the appropriate values. I am trying to loop through each item in the drop down list and then export Sheet1 as a pdf. The code I have so far just exports the same item in the list and doesn't actually loop through, how can I change this? Here is my code so far:
Code:
Sub Create_pdf_pack()
Dim inputRange As Range
Dim c 'As Range
Set inputRange = Evaluate(Range("AD5").Validation.Formula1)
For Each c In inputRange
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
fileName:="C:\test\" & c.Value, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Next c
End Sub