ACTIVEDOCUMENT PRINTOUT PDF

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.

Author:Kilrajas Dacage
Country:Colombia
Language:English (Spanish)
Genre:Love
Published (Last):23 October 2014
Pages:38
PDF File Size:3.28 Mb
ePub File Size:6.35 Mb
ISBN:980-1-79931-313-6
Downloads:12086
Price:Free* [*Free Regsitration Required]
Uploader:Gojar



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.

ENEMA BARITADO PDF

Subscribe to RSS

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? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.

ENFOQUE HERMENEUTICO 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. 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.

ENGINEERING MECHANICS STATICS 13TH EDITION HIBBELER SOLUTIONS PDF

PrintOut Method

Log In. Hope This Help PH. PrintOut Great idea! It worked. I entered: ActiveDocument. Red Flag This Post Please let us know here why this post is inappropriate.

Related Articles