Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2005

Tip: Looking for answers? Try searching our database.

VBA and System Info

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Default User - 05 Sep 2005 00:06 GMT
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.
Doug Robbins - 05 Sep 2005 05:10 GMT
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

Signature

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

> Hi,
>
[quoted text clipped - 6 lines]
>
> Dan.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.