View Single Post
 
Old 12-13-2012, 07:18 AM
mbk mbk is offline Mac OS X Office for Mac 2011
Novice
 
Join Date: Dec 2012
Posts: 6
mbk is on a distinguished road
Default Error on macro to insert endnotes on Mac

I use Word 14.2.3 for Mac under OS X 10.7.5 (Lion). I want a macro that inserts an endnote into a Word document, using Arabic numbering. I recorded such a macro, but when I run it keep getting Run-time error '4605' .
Help, anyone?

Here is the code:
Code:
Sub InsertEndnote()
'
' InsertEndnote Macro
'
'
With Selection
  With .EndnoteOptions
    .Location = wdEndOfDocument
    .NumberingRule = wdRestartContinuous
    .StartingNumber = 1
    .NumberStyle = wdNoteNumberStyleArabic
  End With
  .Endnotes.Add Range:=Selection.Range, Reference:=""
End With
End Sub

Last edited by macropod; 12-13-2012 at 05:54 PM. Reason: Added code tags & formatting
Reply With Quote