Re: Update table cell in footer ! by lf
lf
Mon Feb 25 15:35:01 PST 2008
Are you sure the footer that contains the table is a wdHeaderFooterPrimary?
For example, if you have set a different first page and the table is in the
footer of the first page, it is a wdHeaderFooterFirstPage.
--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
"Grenier" wrote:
> tried it both way and still does not work ...
>
> ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range.Tables(1).Cell(2,2).Range.Text = "updated on february 25"
>
> Set rng = ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range
> With rng.Tables(1).Cell(1, 1).Range
> .Text = "updated on february 25"
> End With
>
> any guess ?
>