CYCLE THROUGH DV OPTIONS
Here's a basic macro for cycling through all the Data Validation options in a certain cell. The sample then prints out the workbook, but you can replace that line of code with whatever action you prefer, this should give you the basics.
Cycle Through Data Validation Options
The one edit that comes to mind is instead of printing the payslips (which may work for you and you're done..) you can export the sheet to PDF using the same cell reference as a filename source...
so this line:
ActiveSheet.PrintOut 'do something here...
...is replaced by something like this:
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="C:\MyDocuments\Payslips\" & Range("B1").Value & "temp.pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Bookmarks