Using Macros in Letters

Before you can begin using macros in eSite letters, you must define the AMSIPostMergeModule and AMSIPostMergeMacro. We provide basic instruction on how to complete this task. Once completed, you may begin recording macros for using with eSite letter documents. For more information about macros, and how they are used in Word, open any Word document and select Help from the product toolbar.

ClosedTo Define AMSIPostMergeModule and AMSIPostMergeMacro

For the purposes of this instruction, we will work with an eSite letter document named GuestL

  1. Open an eSite letter document to work with. For instance, open GuestL.
  2. Select ToolsMacroVisual Basic Editor from the Word toolbar. The Visual Basic Editor opens. In the project pane you will see the project with the same name as the eSite letter. For instance, you will see a project named GuestL.

Note Note

In this project, you will use Modules.

  1. Locate the Insert menu and select Module.
  2. Name the new module, AMSIPostMergeModule.
  3. Within that module, create a sub-routine called AMSIPostMergeMacro.
  4. Save and close the Visual Basic Editor.

ClosedTo Record a New Macro

For the purposes of this instruction, we will record a macro named Signature.

  1. Open an eSite letter document to work with. For instance, open GuestL.
  2. Select ToolsMacroRecord New Macro from the Word toolbar to record a new macro.
  3. Name the macro, Signature and click OK.
  4. Select Ctrl + End to move to the end of the document.
  5. Type text you want to record for the signature.
  6. Click the Stop button on the macro recorder controls dialog box.
  7. Select ToolsMacroVisual Basic Editor from the Word toolbar. This Visual Basic Editor opens.
  8. Copy the Signature sub-routine into the AMSIPostMergeMacro.
  9. Make any additional changes to the sub-routine as needed. For instance, add the current date and time if desired.
  10. Save your entry in the Visual Basic Editor.
  11. Save the document.
  12. Close the document.

See Also

Letter Merge: Step 1 Tab

Letter Merge: Step 2 Tab

To Print Letters

Effect of Global Policies

Letter Details

Client-Side vs. Server-Side

Special Lease Letter Tags

Letters Setup Overview

Setup Questions Letter Function Details

Setup Sequence

 

Copyright © 2018 Infor. All rights reserved. www.infor.com.