#1
|
|||
|
|||
Normal template Footnote Separators
I'm using Word 2016. How can I change the footnote separator (and continuation separator) with VBA?
When the separator is reset with the following ... Code:
ActiveDocument.Footnotes.ResetSeparator Do I have to delete that line and create my own? If so, it would be helpful to know how to recreate a horizontal line with similar properties. Right now I have: Code:
Dim horiz_line As InlineShape d.Footnotes.separator.Style = "Footer" Set horiz_line = d.Footnotes.separator.InlineShapes.AddHorizontalLineStandard horiz_line.HorizontalLineFormat.NoShade = True horiz_line.HorizontalLineFormat.WidthType = wdHorizontalLineFixedWidth horiz_line.HorizontalLineFormat.Alignment = wdHorizontalLineAlignLeft horiz_line.Width = PicasToPoints(5) horiz_line.Height = 0.65 horiz_line.Shadow.ForeColor.RGB = 0 horiz_line.Borders.OutsideLineStyle = wdLineStyleSingle |
#2
|
||||
|
||||
Why do you need VBA for this? With the appropriate template, it's a once-off exercise.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
That's true. My goal is to allow users of an addin to set the separators in their normal template, along with some other properties.
Do you have an idea of how to edit it? |
#4
|
||||
|
||||
The standard footnote separator is an object rather like a footnote reference - it's neither a shape nor an inline shape. You can access it via code like:
Code:
With ActiveDocument.Footnotes.Separator .End = .End - 1 End With
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Thanks. It helps to know that the separator object is not something to manipulate.
I think my inexperience with inline shapes was preventing me from getting what I wanted. Thanks again. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Normal template - file name | Begadoc | Word | 3 | 09-12-2016 08:07 PM |
normal.template | ubns | Word | 2 | 05-11-2012 05:08 AM |
Replace the Normal.Dot Template | DoctorT | Word | 3 | 12-22-2011 07:05 AM |
normal template does not exist | nwhittak | Word | 1 | 10-19-2010 07:01 AM |
Pasting into 'Normal' template | llanelliboy | Word | 0 | 01-29-2009 11:28 PM |