Hi

I use this method (Selection.Fields.Add) to add an entry in the document for
the Table of Contents that is then generated by the program, however I want
to make some in the TOC Bold.

Thank you in advance,
Shmuel Shulman
SBS Technologies LTD

Re: TOC Question by Jean-Guy

Jean-Guy
Thu May 26 17:02:34 CDT 2005

S Shulman was telling us:
S Shulman nous racontait que :

> Hi
>
> I use this method (Selection.Fields.Add) to add an entry in the
> document for the Table of Contents that is then generated by the
> program, however I want to make some in the TOC Bold.

More details are needed if you want anybody to write a useful response.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org




Re: TOC Question by S

S
Fri May 27 07:50:42 CDT 2005

I create a TOC which is not based on the style of the text but rather an
explicit TOC fields these I insert using the 'Selection.Fields.Add' method
(see exaple below)

Then I call another method to actually create the TOC

So far every thing is OK

But, I want to have some lines within the TOC in bold text

And the question is: How can I do that?

Shmuel Shulman
SBS Technologies LTD





"Jean-Guy Marcil" <no-spam@leaveme.alone> wrote in message
news:%23gkQh6jYFHA.3096@TK2MSFTNGP15.phx.gbl...
>S Shulman was telling us:
> S Shulman nous racontait que :
>
>> Hi
>>
>> I use this method (Selection.Fields.Add) to add an entry in the
>> document for the Table of Contents that is then generated by the
>> program, however I want to make some in the TOC Bold.
>
> More details are needed if you want anybody to write a useful response.
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>
>
>



Re: TOC Question by Jean-Guy

Jean-Guy
Fri May 27 09:36:05 CDT 2005

S Shulman was telling us:
S Shulman nous racontait que :

> I create a TOC which is not based on the style of the text but rather
> an explicit TOC fields these I insert using the
> 'Selection.Fields.Add' method (see exaple below)
>
> Then I call another method to actually create the TOC
>
> So far every thing is OK
>
> But, I want to have some lines within the TOC in bold text
>
> And the question is: How can I do that?

What is the logic to decide which line in the TOC get bolded?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org




Re: TOC Question by S

S
Sat May 28 17:43:55 CDT 2005

There is no logic like every second line it is just that some sections of
the document are more important


"Jean-Guy Marcil" <no-spam@leaveme.alone> wrote in message
news:eJ4rslsYFHA.768@TK2MSFTNGP14.phx.gbl...
>S Shulman was telling us:
> S Shulman nous racontait que :
>
>> I create a TOC which is not based on the style of the text but rather
>> an explicit TOC fields these I insert using the
>> 'Selection.Fields.Add' method (see exaple below)
>>
>> Then I call another method to actually create the TOC
>>
>> So far every thing is OK
>>
>> But, I want to have some lines within the TOC in bold text
>>
>> And the question is: How can I do that?
>
> What is the logic to decide which line in the TOC get bolded?
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>
>
>



Re: TOC Question by Jean-Guy

Jean-Guy
Mon May 30 09:09:57 CDT 2005

S Shulman was telling us:
S Shulman nous racontait que :

> There is no logic like every second line it is just that some
> sections of the document are more important
>

A VBA program can't really make conceptual judgement calls. So I am afraid
that you cannot use VBA to bold some of the line in the TOC.

However, if you can use a style in the document to format those "important"
parts, than you can associate that style with a level in the TOC and format
that level as bold.

So, your TOC field could look like:

{TOC \f \h \t "MyStyle;1"}

where the f switch uses the TC fields and the t switch uses the style
associated with the important stuff. Here, you would bold the TOC 1 style.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org




Re: TOC Question by S

S
Mon May 30 13:53:20 CDT 2005

Merci
Thank you

Shmuel

"Jean-Guy Marcil" <no-spam@leaveme.alone> wrote in message
news:%23YnTAFSZFHA.3280@TK2MSFTNGP09.phx.gbl...
>S Shulman was telling us:
> S Shulman nous racontait que :
>
>> There is no logic like every second line it is just that some
>> sections of the document are more important
>>
>
> A VBA program can't really make conceptual judgement calls. So I am afraid
> that you cannot use VBA to bold some of the line in the TOC.
>
> However, if you can use a style in the document to format those
> "important" parts, than you can associate that style with a level in the
> TOC and format that level as bold.
>
> So, your TOC field could look like:
>
> {TOC \f \h \t "MyStyle;1"}
>
> where the f switch uses the TC fields and the t switch uses the style
> associated with the important stuff. Here, you would bold the TOC 1 style.
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>
>
>