Hi,

Im trying to change the "IncludeText" values in a word document
throguh VB (VBA) , I need to change lot of word documents (nearly
500) , I could change the values of the "includtext" fields in the
document body using the following

' /// after opened the document
lcode = WordDoc.Fields(i).Code
If Left(lcode, 12) = " INCLUDETEXT" Then
newCode = Replace(lcode, "V:\\", "C:\\")
WordDoc.Fields(i).Code.Text = newCode
WordDoc.Fields(i).Update
End If


but this code is not changing the bookmarks or includetext in the
footer,

I dont know how to proceed now..can anyone help me here

Thanks

Re: Bookmarks in footer - how to edit by macropod

macropod
Fri Feb 22 14:12:56 PST 2008

Hi,

Take a look at my Field Link Updater:
http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=261488
It may already do what you want, although it's set up for interactive processing rather than batch processing.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

<kartechy@googlemail.com> wrote in message news:d48d5ac5-75fb-4bb0-9375-b5b0b8b794a9@71g2000hse.googlegroups.com...
> Hi,
>
> Im trying to change the "IncludeText" values in a word document
> throguh VB (VBA) , I need to change lot of word documents (nearly
> 500) , I could change the values of the "includtext" fields in the
> document body using the following
>
> ' /// after opened the document
> lcode = WordDoc.Fields(i).Code
> If Left(lcode, 12) = " INCLUDETEXT" Then
> newCode = Replace(lcode, "V:\\", "C:\\")
> WordDoc.Fields(i).Code.Text = newCode
> WordDoc.Fields(i).Update
> End If
>
>
> but this code is not changing the bookmarks or includetext in the
> footer,
>
> I dont know how to proceed now..can anyone help me here
>
> Thanks
>