How do I print to a printer in VB 6?

B

bnadler

I am just learning VB6 and I do not see how data is sent to a printer. There
is not a printer method that I can find
 
B

bnadler

I have tried using Printer.Print but I cannot find the Printer object
anywhere. It isn't even listed in the help section.
 
J

Joel

Microsfot documentation is really bad. they don't tell you what type object
you are suppose top use. In this case the object is the worksheet and you
can't change printers. The printer is the default printer on you PC.

activesheet.printout
 
D

Dave Peterson

You may want to ask in a forum dedicated to VB--not excel.

If you really meant you wanted to print something in excel's vba:

worksheets("Sheet999").printout 'preview:=true
or
worksheets("sheet999").range("x1:Z9").printout 'preview:=true
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top