richard
Wed Jul 12 03:08:18 CDT 2006
Jean-Guy Marcil wrote:
> richard.jolly@gmail.com was telling us:
> richard.jolly@gmail.com nous racontait que :
>
> > I'm trying access through VBA an existing table in the header. I need
> > to pass a variable from another routine (that have completed and is
> > working).
> >
> > The existing table is only 1 row with 2 columns (the RH cell has a
> > graphic in there that needs to stay there) I want to pass the variable
> > to the LH cell.
> >
> > I have tried using the sections header.range.text but this just places
> > the variable underneath the table.
>
> Try (assuming the sections number is static, that yu want to get to the man
> header and that there is only one table in the said header):
>
> ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary) _
> .Range.Tables(1).Cell(1, 1).Range.Text = "Your Text!"
>
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site:
http://www.word.mvps.org
Thank you - works a treat.Sorry for the double posting -didn't know the
best area to post it