Group: microsoft.public.word.vba.general
From: "Doug Robbins - Word MVP"
Date: Saturday, April 05, 2008 7:48 AM
Subject: Re: PLEASE respond ASAP

We can't tell you how to edit the code if you don't show it to us. However,
it would seem from your description that you are adding the text to the
document footer without any other criteria being imposed. To limit it's
display to just one page, you could use an If...then...Else field
construction that compares the page number to the the page number of
bookmark that you apply to xyz and display the text only if the two are
equal.

Alternatively, you could do it by adding a footnote.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Prasant" wrote in message
news:055774D8-110C-4CFF-A254-B5576C747216@microsoft.com...
> Hi there,
>
> It's a crazy problem i'm facing. I have to work on many documents and
> there
> will be a footer kind of note, same note I have to keep in each document
> but
> the page is not the same. For example, there is a word "xyz" and we dont
> know
> in the document where it comes, when it appears there should be a footnote
> in
> the first instance of the document. If it comes in the second page of one
> document, it comes on someother page in other document. SO I thought of
> recording a macro as the text is same for all. Now it is working, when I
> say
> run it appears BUT IN ALL PAGES OF THE DOCUMENT whereas I require only in
> the
> active page, that is the page where I am working and is needed. I mean,
> when
> I go to a particular page and run the macro, it should come only on that
> particular page and not the entire document.
> How can I edit the code to do that? Where and what should add inside the
> coding to write the text in particular page. Otherwise, everytime I have
> to
> either open or keep open the other document, copy and paste. I thought of
> a
> simple macro but it is becoming complicated.
>
> Sorry for a big explanation, I just want to make clear.
>
> Thanks in advance for your valuable time and solutions. But please respond
> asap.