hi
i need to add a new line (with some text) to the end of the footer in
word (first page and other page).
i need to add this line without changing the formating of the footer (i
have a table in the footer)
i tried some things and nothing worked
how can i do this ?

Re: add one line at the end of a footer by Doug

Doug
Sun Oct 01 22:40:28 CDT 2006

I am assuming that you want to use VBA to do this.

I would insert a { DOCVARIABLE varname } field in the footer where you want
the information to appear and then use

Dim i as Long
With ActiveDocument
.Variables("varname").Value = "Your line of text"
For i = 1 to .Sections.Count
.Sections(i).Footers(wdHeaderFooterFirstPage).Range.Fields.Update
.Sections(i).Footers(wdHeaderFooterPrimary).Range.Fields.Update
Next i
End With

--
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

"4tis" <garbagem@walla.com> wrote in message
news:1159738595.776246.79460@c28g2000cwb.googlegroups.com...
> hi
> i need to add a new line (with some text) to the end of the footer in
> word (first page and other page).
> i need to add this line without changing the formating of the footer (i
> have a table in the footer)
> i tried some things and nothing worked
> how can i do this ?
>



Re: add one line at the end of a footer by 4tis

4tis
Fri Oct 13 14:16:16 CDT 2006

thanks
and how can i add this { DOCVARIABLE varname } to the footer via VBA
code and find if it exist ?
i dont have any clew with this variable but it seems that this is
exactly what i am looking for
thanks


Re: add one line at the end of a footer by 4tis

4tis
Fri Oct 13 14:16:19 CDT 2006

thanks
and how can i add this { DOCVARIABLE varname } to the footer via VBA
code and find if it exist ?
i dont have any clew with this variable but it seems that this is
exactly what i am looking for
thanks


Re: add one line at the end of a footer by Doug

Doug
Sat Oct 14 02:02:26 CDT 2006

Insert the field in the template manually from the Insert>Field menu or by
pressing Ctrl+F9 to insert a pair of field delimiters and typing the
DOCVARIABLE varname inside them and then using Alt+F9 to toggle off the
display of the field codes. Then when the macro is run, the information
that is stored in the variable by the code in the macro will be displayed

--
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

"4tis" <garbagem@walla.com> wrote in message
news:1160766979.560250.96030@h48g2000cwc.googlegroups.com...
> thanks
> and how can i add this { DOCVARIABLE varname } to the footer via VBA
> code and find if it exist ?
> i dont have any clew with this variable but it seems that this is
> exactly what i am looking for
> thanks
>



Re: add one line at the end of a footer by 4tis

4tis
Sat Oct 14 17:39:09 CDT 2006

thanks
it was realy helping
this is exactly what i was needed
i just did not knew about fields in word