Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change the "includeText" field value in the Footer via VB/VBA

2 views
Skip to first unread message

kart...@googlemail.com

unread,
Feb 22, 2008, 11:30:28 AM2/22/08
to
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
' // save and close document and word objects


but this code is not changing the "includetext" in the
footer..


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


Thanks

0 new messages