Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2016, 02:52 PM
macropod's Avatar
macropod macropod is online now Search Replace Code Windows 7 64bit Search Replace Code Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

In that case, try the following macro:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument
  For i = .Endnotes.Count To 1 Step -1
    With .Endnotes(i)
      .Reference.InsertAfter "<a id=""bn_" & i & """ href="" ../Text/endnotes.html#n_" & i & """>" & i & "</a>"
      .Delete
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
For Mac macro installation & usage instructions, see: http://word.mvps.org/Mac/InstallMacro.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 02-22-2016, 12:32 PM
BolligeA1 BolligeA1 is offline Search Replace Code Windows 10 Search Replace Code Office 2013
Novice
Search Replace Code
 
Join Date: Feb 2016
Posts: 5
BolligeA1 is on a distinguished road
Default

Thank you so very much, that worked Kindest Blessings
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Search and Replace puzzle grantworth Word 3 04-07-2015 05:32 AM
Search and replace/insert HTML code into Master File using tags dave8555 Excel 2 02-23-2014 03:51 PM
Search Replace Code search and replace dirkoo Word VBA 2 08-14-2013 11:25 AM
Search Replace Code Odd search and replace query Rabski Word 1 11-13-2012 02:25 PM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:22 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