Quote:
Originally Posted by brent chadwick
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.