Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2021, 11:05 AM
brent chadwick brent chadwick is offline Footnote aligned with decimal Windows 8 Footnote aligned with decimal Office 2013
Advanced Beginner
Footnote aligned with decimal
 
Join Date: Mar 2015
Posts: 83
brent chadwick is on a distinguished road
Default Footnote aligned with decimal

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
Reply With Quote
  #2  
Old 09-15-2021, 07:53 AM
TheBigBoss TheBigBoss is offline Footnote aligned with decimal Windows 7 32bit Footnote aligned with decimal Office 2010 32bit
Novice
 
Join Date: Dec 2016
Posts: 23
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
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Footnote aligned with decimal Left Leading $ with decimal aligned numbers rosen.j Mail Merge 2 01-19-2021 05:03 PM
Footnote aligned with decimal Rtl text aligned right and ltr text aligned to left in one line - HOW? wordnew Word 10 09-06-2020 08:23 AM
Footnote aligned with decimal Removing line break and indentation between footnote number and footnote text in Word jaanross Word 5 02-06-2020 12:04 AM
Pulling 2 digits before a decimal point from adjoining cell then zeros after decimal jadess916 Excel 1 06-26-2014 03:48 AM
Footnote text is not aligned with the corresponding number Patrick1988 Word 0 08-28-2010 09:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:03 AM.


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