Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-30-2018, 02:19 PM
d4okeefe d4okeefe is offline Normal template Footnote Separators Windows 10 Normal template Footnote Separators Office 2016
Advanced Beginner
Normal template Footnote Separators
 
Join Date: Apr 2013
Posts: 77
d4okeefe is on a distinguished road
Default 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
... a line appears. I want to edit the length of that line. But I can't figure out what it is. Is it an inline shape? Or something else?

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
Reply With Quote
  #2  
Old 05-30-2018, 03:04 PM
macropod's Avatar
macropod macropod is offline Normal template Footnote Separators Windows 7 64bit Normal template Footnote Separators Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Why do you need VBA for this? With the appropriate template, it's a once-off exercise.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-30-2018, 03:15 PM
d4okeefe d4okeefe is offline Normal template Footnote Separators Windows 10 Normal template Footnote Separators Office 2016
Advanced Beginner
Normal template Footnote Separators
 
Join Date: Apr 2013
Posts: 77
d4okeefe is on a distinguished road
Default

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?
Reply With Quote
  #4  
Old 05-30-2018, 04:10 PM
macropod's Avatar
macropod macropod is offline Normal template Footnote Separators Windows 7 64bit Normal template Footnote Separators Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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
to exclude the terminating paragraph break, then process/edit it as a Range object.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 05-31-2018, 09:09 AM
d4okeefe d4okeefe is offline Normal template Footnote Separators Windows 10 Normal template Footnote Separators Office 2016
Advanced Beginner
Normal template Footnote Separators
 
Join Date: Apr 2013
Posts: 77
d4okeefe is on a distinguished road
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Normal template Footnote Separators Normal template - file name Begadoc Word 3 09-12-2016 08:07 PM
Normal template Footnote Separators normal.template ubns Word 2 05-11-2012 05:08 AM
Normal template Footnote Separators 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

Other Forums: Access Forums

All times are GMT -7. The time now is 05:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft