VBA and System Info

D

Default User

Hi,

I am fairly new to VBA and programming Word - I was wondering if it is
possible for a Word Template to automatically populate itself when opened
with certain system information, eg. any mapped network drives, printers
installed, etc.

Thanks for any help,

Dan.
 
D

Doug Robbins

Use a macro named autonew() in the template to hold the code and it will run
when a document is created by using File>New and then selecting the
template.

See the following article for how to get the name of the active printer

"Changing the selected (current) printer in Word without changing the system
default printer" at:

http://www.word.mvps.org/FAQs/MacrosVBA/ChangeCurPrinter.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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