F
Fredrik
Hi,
I'm trying to create outline numbered headings, where the number is located
in the left margin. I try to accomplish this using a negative value for
"NumberPosition" on the ListTemplate. Initially, this works fine, but as soon
as I click on the Heading's number, the whole paragraph, including the
number, "jumps in" to the right so that the number is located exactly at the
margin instead of to the left of it.
I define my styles and ListTemplate in VBA, the relevant portion of which
reads:
With .ListTemplate.ListLevels(1)
.NumberPosition = CentimetersToPoints(-1.5)
.Alignment = wdListLevelAlignLeft
.TrailingCharacter = wdTrailingTab
.TabPosition = 0
.TextPosition = CentimetersToPoints(0)
…
End With
After clicking on a heading's number, I can see that Word resets
"NumberPosition" to 0. Why? Negative indentation clearly appears to be
supported (http://office.microsoft.com/en-us/word/HP100165281033.aspx).
I've tried this in Word 2007 and 2010beta
Kindly,
Fredrik
I'm trying to create outline numbered headings, where the number is located
in the left margin. I try to accomplish this using a negative value for
"NumberPosition" on the ListTemplate. Initially, this works fine, but as soon
as I click on the Heading's number, the whole paragraph, including the
number, "jumps in" to the right so that the number is located exactly at the
margin instead of to the left of it.
I define my styles and ListTemplate in VBA, the relevant portion of which
reads:
With .ListTemplate.ListLevels(1)
.NumberPosition = CentimetersToPoints(-1.5)
.Alignment = wdListLevelAlignLeft
.TrailingCharacter = wdTrailingTab
.TabPosition = 0
.TextPosition = CentimetersToPoints(0)
…
End With
After clicking on a heading's number, I can see that Word resets
"NumberPosition" to 0. Why? Negative indentation clearly appears to be
supported (http://office.microsoft.com/en-us/word/HP100165281033.aspx).
I've tried this in Word 2007 and 2010beta
Kindly,
Fredrik