Re: MS Word: Syntax for getting into a page footer to swap out graphic?

Subject: Re: MS Word: Syntax for getting into a page footer to swap out graphic?
From: "Jonathan West" <jwest -at- mvps -dot- org>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Tue, 3 Jun 2008 16:42:04 +0100

2008/6/3 Dan Goldstein <DGoldstein -at- riverainmedical -dot- com>:
> I have only a partial answer. The command to jump to the footer is:
>
> ActiveWindow.ActivePane.View.SeekView = _
> wdSeekCurrentPageFooter
>

Ouch no!

This is an occasion where it is far better to learn about Range
objects, and manipulate the ranges of the headers & footers directly.
You can insert & delete stuff in any Range (and each header & footer
is a Range) without having to go into header & footer view. You can do
almost anything with a Range object variable that you can do with the
Selection, with the added advantage that it is usually quicker (the
screen doesn't flicker about so) and you can define as many ranges as
you want, while you can only have one Selection.

The following article has some good sample code describing how to use ranges

Replace Text Anywhere in a Document
http://www.word.mvps.org/FAQs/Customization/ReplaceAnywhere.htm

Regards
Jonathan West
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Create HTML or Microsoft Word content and convert to Help file formats or
printed documentation. Features include support for Windows Vista & 2007
Microsoft Office, team authoring, plus more.
http://www.DocToHelp.com/TechwrlList

True single source, conditional content, PDF export, modular help.
Help & Manual is the most powerful authoring tool for technical
documentation. Boost your productivity! http://www.helpandmanual.com

---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40web.techwr-l.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/ for more resources and info.


Follow-Ups:

References:
MS Word: Syntax for getting into a page footer to swap out graphic?: From: Emoto
RE: MS Word: Syntax for getting into a page footer to swap out graphic?: From: Dan Goldstein

Previous by Author: Re: Commute/Flex work options a Deal breaker?
Next by Author: Re: Floating, invisible links in a PDF
Previous by Thread: Re: MS Word: Syntax for getting into a page footer to swap out graphic?
Next by Thread: RE: MS Word: Syntax for getting into a page footer to swap outgraphic?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads