I have a toolbar with no captions. When I click on one of the buttons, it calls the toolbar1_click() procedure with the parameter "Button ByVal as btnControl" with the Button variable holding the Caption text.
The problem is, I don't want captions, but without them I can't creat a...
This is pretty basic (no pun intended) but should do the trick. With some tweaking you can better format the layout of the output.
Private Sub PrintListBox
Dim n as Integer
For n=1 To List1.ListCount-1
List1.ListIndex=n
Printer.Print List1.Text
Next
End Sub
Hope it helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.