TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: BARRY KOHLER
from: JIGAL VAN HEMERT
date: 1997-05-11 09:03:00
subject: Header Info

High! Barry,
Ref: Header Info, dd.05-May-97, from: Barry Kohler
 BK> I have a template for 2 page letters that works fine, except I
 BK> cannot figure out how to have the page 2 header "automatically"
 BK> pick up the name from the inside address of the letter.
Use Formfields to represent the name/address/etc. in your template. Mark
the name field and select Edit/Bookmark, you'll now see a list of the
bookmarks that Word automagically made for the formfields. Remember the
name of the name field bookmark.
In the header on page 2 you can now Insert the Field 'reference' (I
couldn't find the correct English name of that field because I'm using a
localized version of Word). Click the Options button and select the
bookmark of the name field.
Make a bookmark at the position where the main text of the letter
starts. 
Make a macro (call it for example EndForm) with the following lines:
    Sub MAIN
        ToolsUnprotectDocument
        EditGoTo .Target="MainText"
    End Sub
    
Now edit the last formfield in your template (right click and options
for field). Make sure that upon leaving this field your macro will be
executed.
Put the cursor in the first form field and select Tools/Protect
Document/Forms/OK. Now save your template.
When you use this template the header in page two will _not_ show the
right name, but as a default Word will update all fields just prior to
printing. If that does not work check the appropriate options in the
Tools/Options window.
                     ___   __   __
Happy programming,  /   | / /__/ /
                ___/ /| |/ ___  /
Jigal.         /____/ |___/  /_/
--- Terminate 4.00/Pro
---------------
* Origin: Point 2 is a point too at Revolution Ballroom (2:281/721.2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.