double spacing content of TOC

S

sals

I have the code to insert a TOC, does anyone know how tomake the
content of the TOC double space?

_______________________________________________________


With ActiveDocument
.TablesOfContents.Add Range:=Selection.Range,
RightAlignPageNumbers:= _
True, UseHeadingStyles:=True, UpperHeadingLevel:=3,
LowerHeadingLevel:=3, _
IncludePageNumbers:=True, AddedStyles:="Heading 3", _
UseHyperlinks:=True, HidePageNumbersInWeb:= _
True, UseOutlineLevels:=False
.TablesOfContents(1).TabLeader = wdTabLeaderDots
.TablesOfContents.Format = wdIndexIndent
End With
 
J

Jonathan West

In your document or template, set the paragraph format of the TOC 1 to TOC 9
styles.
 
S

sals

I tried this ..

ActiveDocument.TablesOfContents(1).Range.ParagraphFormat.LineSpacingRule
= wdLineSpace1pt5

for 1.5 spacing

thansk John!
 

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

Similar Threads

Table of Contents Nightmare 1
Table of Contents Styles font issue 5
TOC problem 0
Table of Content 1
TOC Help 0
TOC Problem 0
TOC Question 3
Apply a paragraph style to a Table of Contents 1

Top