Forum Discussion

wcdf00's avatar
wcdf00
Copper Contributor
Oct 30, 2019
Solved

How to print out all item inside the drop down box (picture included)

Hello all, I am new here. Last few years I search through online to seek for a solution to auto print out all the option included in a drop down list ( which the content will change based on the drop...
  • JKPieterse's avatar
    JKPieterse
    Oct 31, 2019

    wcdf00 YOu could use a macro like this to print all items in the list:

    Sub PrintAll()
        Dim lCt As Long
        With ActiveSheet.DropDowns("Drop Down 4")
            For lCt = 1 To .ListCount
                .ListIndex = lCt
                If Len(.List(.Value)) > 0 Then
                    ActiveSheet.PrintOut
                End If
            Next
        End With
    End Sub

Resources