recieve kind greetings
am tryin to print all options from a drop down menu the code is runnig well but then it goes ahead to print even the blank cell my code is
am tryin to print all options from a drop down menu the code is runnig well but then it goes ahead to print even the blank cell my code is
VBA Code:
Sub Iterate_Through_data_Validation()
Dim xRg As Range
Dim xCell As Range
Dim xRgVList As Range
Set xRg = Worksheets("RPT").Range("U13")
Set xRgVList = Evaluate(xRg.Validation.Formula1)
For Each xCell In xRgVList
xRg = xCell.Value
ActiveSheet.PrintOut
Next
End Sub
Last edited by a moderator: