Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing a ListBox in Visio?

Status
Not open for further replies.

Alcedes

Technical User
Mar 25, 2008
46
0
0
US
I don't know what I am doing wrong here.

This is my code.

For Count = 0 To lstInventory.ListCount - 1
Printer.Print lstInventory.List(Count)
Next Count

Printer.EndDoc

Everytime I run this I get the error:

Object Required

and it highlights the line

Printer.Print lstInventory.List(Count)

Now I know that the lstInventory is correct.
Which means the required object is "Printer"

But that is not an object that needs to be referenced.
It is just there. In VB6 it is at least. Do I need to reference it in VBa code? If so, which object is it?

What do I do to fix this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top