ACTIVEDOCUMENT PRINTOUT PDF

A variable that represents a Document object. This example prints all the documents in the current folder. The Dir function is used to return all file names that have the file name extension ". Have questions or feedback about Office VBA or this documentation?

Author:Dikus Grozuru
Country:Hungary
Language:English (Spanish)
Genre:Medical
Published (Last):13 August 2017
Pages:139
PDF File Size:17.90 Mb
ePub File Size:5.89 Mb
ISBN:473-9-77856-884-3
Downloads:52348
Price:Free* [*Free Regsitration Required]
Uploader:Vuzilkree



Please Note: This article is written for users of the following Microsoft Word versions: 97, , , and If you are using a later version Word or later , this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Printing the Active Document from a Macro. Macros really can make life easier. It is not uncommon to create macros that perform repetitive tasks, and thereby relieve us of the mundane tasks we might otherwise need to perform.

It is also not uncommon to need to print out the current document after doing some processing on it. If you find yourself with this need, you can simply let the macro take care of printing the current document.

To add this capability to your macros, simply include a line like this:. The PrintOut method prints the specified document; in this case, the ActiveDocument object—the document currently selected—is printed. In this particular usage, the Copies argument is used to specify how many copies of the document to print.

When using the PrintOut method, there are quite a few different arguments you can use. Rather than detail all of them, it is probably more useful to just look at some of the more common arguments you can use. Note: If you would like to know how to use the macros described on this page or on any other page on the WordTips sites , I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab. WordTips is your source for cost-effective Microsoft Word training.

Microsoft Word is the most popular word processing software in the world. This tip applies to Microsoft Word 97, , , and You can find a version of this tip for the ribbon interface of Word Word and later here: Printing the Active Document from a Macro. With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author.

He is president of Sharon Parq Associates , a computer and publishing services company. Learn more about Allen Want to grab some interactive input from a user in your macro?

The best way to do that is with the InputBox function, PivotTables are used to boil down huge data sets into something you can more easily understand. They are very good simple As you are typing away on a document, you may notice that Word automatically formats bulleted lists or what it thinks This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs.

Need to know if the user selected some text before running your macro? Here's how to make that check. Need to figure out the hour represented by a particular time value? It's easy to do in a macro; just use the Hour Enter your address and click "Subscribe.

Your e-mail address is not shared with anyone, ever. Maximum image size is 6Mpixels. Images larger than px wide or px tall will be reduced.

Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

There are currently no comments for this tip. Be the first to leave your comment—just use the simple form above! This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

View the most recent newsletter. Toggle navigation. Printing the Active Document from a Macro. To add this capability to your macros, simply include a line like this: ActiveDocument. The ranges are separated by commas and enclosed in quote marks, similar to how you specify page ranges in the Print dialog box.

Used to specify the file name of the output file. If you would like to know how to use the macros described on this page or on any other page on the WordTips sites , I've prepared a special page that includes helpful information. Author Bio. Discover More. Weighted Averages in a PivotTable PivotTables are used to boil down huge data sets into something you can more easily understand. Turning Off Automatic Bulleted Lists As you are typing away on a document, you may notice that Word automatically formats bulleted lists or what it thinks More WordTips menu.

Checking for a Text Selection Length Need to know if the user selected some text before running your macro? Determining the Hour of the Day Need to figure out the hour represented by a particular time value?

Determining Word Frequency How to construct a word frequency list. Hide my email address. What is nine more than 7? This Site. Newest Tips. Links and Sharing. About Tips. The page ranges to print. Normally False, but you can set it to True if you want output to go to a disk file instead of the printer. Only necessary if you set PrintToFile to True.

NBR 14608 BOMBEIRO PROFISSIONAL CIVIL PDF

Document.PrintOut method (Word)

Please Note: This article is written for users of the following Microsoft Word versions: 97, , , and If you are using a later version Word or later , this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Printing the Active Document from a Macro. Macros really can make life easier. It is not uncommon to create macros that perform repetitive tasks, and thereby relieve us of the mundane tasks we might otherwise need to perform. It is also not uncommon to need to print out the current document after doing some processing on it. If you find yourself with this need, you can simply let the macro take care of printing the current document.

IP6700D MANUAL PDF

Printing the Active Document from a Macro

Please Note: This article is written for users of the following Microsoft Word versions: , , , , , and Word in Office If you are using an earlier version Word or earlier , this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Printing the Active Document from a Macro. Macros really can make life easier. It is not uncommon to create macros that perform repetitive tasks, and thereby relieve us of the mundane tasks we might otherwise need to perform.

AUF DER VOGELWIESE PDF

PrintOut Method

Set to True to have the macro continue while Microsoft Word prints the document. Set to True to append the specified document to the file name specified by the OutputFileName argument. False to overwrite the contents of OutputFileName. If PrintToFile is True , this argument specifies the path and file name of the output file.

DAVID LOY NONDUALITY PDF

Subscribe to RSS

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I have two word documents, source and target. My target document is pulling values from a table inside source document and putting those concatenated values stored inside a variable named ReportHeader into it's page header.

Related Articles