Need to use VBA to print to default printer

B

Brent E

Good afternoon,

I am using a module to print a list of documents, but I need to know a VBA
command to print documents to any computer's current default printer. Any
suggestions? Thanks

Cordially
 
D

david epsom dot com dot au

If you have Word documents, you would tell Word to open and
print the documents. Is that what you wish to do?

The BASIC print commands print to the screen or a file, not
to a printer. BASIC can also write to a printer port.

Those commands all send text, because that is what BASIC did.

Are your 'documents' simple text files? Are your printers simple
text printers? If not, you will need to have a program that will
render the 'document' into a format that your printers can understand.
There is no simple VBA command that can do that. Instead, you can
use the Windows API to convert text to a printer format, but you
will need to use a program that understands your documents if they
are not simple text files.

(david)
 
Top