Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-13-2012, 07:18 AM
mbk mbk is offline Error on macro to insert endnotes on Mac Mac OS X Error on macro to insert endnotes on Mac Office for Mac 2011
Novice
Error on macro to insert endnotes on Mac
 
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
 

Tags
footnote, macro vba word, record



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error on macro to insert endnotes on Mac How to convert endnotes in a text doc to Word endnotes? Dickison Word VBA 4 10-06-2012 09:11 PM
Macro to insert new page... samanthaj Word 17 01-31-2012 01:53 PM
Powerpoint Macro To Insert Objects Sample lahuva PowerPoint 0 07-06-2011 10:51 AM
Insert Page Error nmbrown Word 1 10-28-2010 10:33 AM
Error on macro to insert endnotes on Mac Macro for Picture Insert rfhall50 Word VBA 2 10-25-2010 12:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:09 PM.


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