Sunday, March 27, 2011

How: create a Word macro at the end of a document

Microsoft Word increases productivity by manually to create using a typewriter, instead documents with a computer.

Using Word checks spelling, formatting text and other automated functions even inexperienced users can produce professional documents. Those who want to automate the software can do this by creating macros. By using a macro, you can click on a button and blow up at the end of a long document without scrolling around. Difficulty: average

Instructions

    Add tab "Developer tools" in Word 2010
  1. 1

    Open Microsoft Word.

Click "File" and select "Options".
  • 2

    "" Click on "Customize" Ribbon", and place a check mark next to the" developer.

  • 3

    Click "OK".

  • Word adds the "Developer" in the Ribbon tab above on the screen.

    Add tab "Developer tools" in Word 2010
  • 1

    Open Word and click "Office" button at the top of the screen.

  • 2

    Choose "Word Options" and select "popular".

  • 3

    Select "Map Developer tab in the Ribbon" and click "OK".

  • Word will insert the "Developer" from the Ribbon tab.

    Create macros
  • 1

    Press "ALT + F8."

  • The "Macro" page opens. Type a name for the macro in the macro name "text box using one descriptive name, the no Leerzeiche"contains n. For example, can call this "EndOfDocument."
  • 2

    Click on "create".

  • VBA Editor opens and displays an empty subroutine. Einee subroutine is a block of code that performs a task. In this case, this subroutine executes the statements for the macro that you created. The skeleton of the subroutine will look like this: sub sub xyz() SubThe end name are not "XYZ". It is the macro name containing rather in the text box "Name of the macro."
  • 3

    Add the following code after the statement: select .EndKey 'Sub' unit: = WdStory extend: = WdMove

  • 4

    Click "X" button in the upper right window of the VBA Editor, close the window and return to the main screen of Word.

  • 5

    Open a document that has multiple pages, and position the cursor on the first line.

  • 6

    Press "ALT + F8", open window "Macro"

  • The macro creates, and then click "Run". It runs and move to the end of the document.

    No comments:

    Post a Comment