Thread: [Solved] VBA Footnote Issues
View Single Post
 
Old 11-01-2024, 03:00 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,465
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

All you should need is:
Code:
Sub InsertFootnote()
With Selection
  .Footnotes.Add Range:=.Range
  With .Paragraphs(1).Range
    .Characters(2) = vbTab
    .Characters.Last.Select
  End With
  .Collapse
  ActiveWindow.ScrollIntoView .Range
End With
End Sub
As for the Footnote Reference Style & Footnote Text Style, any character formats and indents should be modified at the Style level, not in code.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote