bookmark.range.fields.add is causing a issue

A

amit

hi,
Please can anyone help me with this issue i am facing...i am trying to
insert a Tables of Content into the text field but it is throwing an error..
The code is Bookmark.Range.Fields.Add ( range, type,text,Preserve formatting)
I have given range which is proper, and text is "anything,2,where,3,here,4"
and type is wdFieldTOC and preserve formatting is false.
Thank you
 
J

Jean-Guy Marcil

amit was telling us:
amit nous racontait que :
hi,
Please can anyone help me with this issue i am facing...i am trying to
insert a Tables of Content into the text field but it is throwing an
error.. The code is Bookmark.Range.Fields.Add ( range,
type,text,Preserve formatting) I have given range which is proper,
and text is "anything,2,where,3,here,4" and type is wdFieldTOC and
preserve formatting is false.
Thank you

We need to see the actual code...

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top