Printing using VBA

S

Steven Revell

Hi,

I was wondering if it is possible to print text an error
report (currently a test string) straight to the default
printer.

If not then does anyone have any good ideas to print out
error reports?

Thanks for any help,
Steven
 
D

Dave Peterson

How about:

Option Explicit
Sub testme03()
Open "LPT1:" For Output As #1
Print #1, "An error occurred!"
Close #1
End Sub
 

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