
combo box to open word document and print
Hi Michael
The following article hopefully will help you work out how to do the
communication with Word.
Control Word from Excel
http://www.mvps.org/word/FAQs/InterDev/ControlWordFromXL.htm
I realise that it is written in terms of controlling Word from Excel rather
than Access, but the same principles apply and most or all of the code
should work from Access
What you need to do, having made a connection to an instance of Word, is
open each document in turn, using the Documents.Open method. Then use the
PrintOut method to print the document and then the Close method to close the
document. Do this for each selected filename in turn.
--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email
Quote:
> I have a combo box in access containing names of several word documents.
> When a document is selected I want Word to open and print the document. I
> have tried several ways and can't figure it out.
> Thanks for any help,
> Mike