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
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top