Group: microsoft.public.word.vba.general
From: =?Utf-8?B?U2FtbXk=?=
Date: Tuesday, March 11, 2008 1:03 PM
Subject: RE: Play AutoText in Header

One more thing, I would prefer not to use a bookmark which seems like an
extra step. I just want to insert an autotext entry directly into the first
page header. Thanks

"Sammy" wrote:

> Hello,
>
> I'm using Word 03. I know this should be easy but I'm lost. From searching
> the newsgroup I found this code to add text to a header:
>
> ActiveDocument.Bookmarks("myHeaderBookmark").Range.Text = "my text"
>
> But I have the text/graphic in an autotext entry. How do I play an autotext
> entry in a header? The Range object here doesn't seem to have any links to
> autotext.
>
> Any help is appreciated!
>