View Single Post
 
Old 03-26-2022, 07:12 PM
Bella Bella is offline Windows 10 Office 2016
Novice
 
Join Date: Mar 2022
Posts: 4
Bella is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
For PC macro installation & usage instructions, see: Installing Macros
For Mac macro installation & usage instructions, see: Word:mac - Install a Macro
Hi Paul, Thanks so much for your prompt reply. I'm using EndNoteX9 to change in-text citations to unformatted citations in {}. I wrote the following code to cut and paste all the unformatted citations to endnotes, but it says "invalid or unqualified reference". Could you please help me understand why?
Sub Convert ()
Do While .Find
.Selection = "\{[!\{]@\}"
Selection.Cut
With Selection
With .EndnoteOptions
.Location = wdEndOfDocument
.NumberingRule = wdRestartContinuous
.StartingNumber = 1
.NumberStyle = wdNoteNumberStyleArabic
End With
.Endnotes.Add Range:=Selection.Range, Reference:=""
End With
Selection.Paste
Loop
End Sub
Reply With Quote