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 / April 2006

Tip: Looking for answers? Try searching our database.

Automate MS Office document writer and use a text form field in the file name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rligouri@allwaysforwarding.com - 07 Apr 2006 21:22 GMT
I have a bunch word forms that need to be converted to tif for an
imaging system. I am very new at vba and i need some help. I want to
create a macro to print the document to Microsoft Office Document Image
writer and save the file to a specified folder (using vba) and name the
file based on a text form field. So far I have:

ActivePrinter = "Microsoft Office Document Image Writer"
   Application.PrintOut FileName:="", Range:=wdPrintAllDocument,
Item:= _
       wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
       ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
       False, PrintZoomColumn:=0, PrintZoomRow:=0,
PrintZoomPaperWidth:=0, _
       PrintZoomPaperHeight:=0

It gets me up to the the file save as screen.

Any Ideas? Any help would be greatly appreciated.
Doug Robbins - Word MVP - 09 Apr 2006 18:58 GMT
Application.PrintOut
FileName:=ActiveDocument.FormFields("formfieldbookmarkname").Result

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

>I have a bunch word forms that need to be converted to tif for an
> imaging system. I am very new at vba and i need some help. I want to
[quoted text clipped - 16 lines]
>
> Any Ideas? Any help would be greatly appreciated.
 
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.