View Single Post
 
Old 09-15-2021, 07:53 AM
TheBigBoss TheBigBoss is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Dec 2016
Posts: 56
TheBigBoss is on a distinguished road
Default

Quote:
Originally Posted by brent chadwick View Post
Hey Guys,
I found some code that gives me the type of number and period for footnotes that I like, but I cannot get the decimals to line up such as in single and double digits. I.E.
9.
10.
I have messed with the style and it does not seem to effect it. Here's the code-


Code:
Sub InsertFootnote()
ActiveDocument.Footnotes.Add Range:=Selection.Range
With Selection
   .Paragraphs(1).Range.Font.Reset
   .Paragraphs(1).Range.Characters(2) = ""
   .InsertAfter ". " & vbTab
   .Collapse wdCollapseEnd
End With
End Sub

If you want text to be aligned at the dot, you need to insert a "Right Tab" at the dot and type a "Tab" key before the number.

Sorry, I can't say if this can be done with VBA but I presume it can.
Reply With Quote