Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-22-2017, 04:20 PM
SlimYooper SlimYooper is offline Convert endnotes into plain text exactly Windows 10 Convert endnotes into plain text exactly Office 2016
Novice
Convert endnotes into plain text exactly
 
Join Date: Oct 2017
Posts: 4
SlimYooper is on a distinguished road
Default

I probably should have included the code for what I've found

Code:
Dim aendnote As Endnote
	For Each aendnote In ActiveDocument.Endnotes
	ActiveDocument.Range.InsertAfter vbCr & aendnote.Index & vbTab & aendnote.Range 
	aendnote.Reference.InsertBefore "a" & aendnote.Index & "a" 
	Next aendnote
For Each aendnote In ActiveDocument.Endnotes
	aendnote.Reference.Delete
Next aendnote
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find.Replacement.Font
	.Superscript = True
End With
With Selection.Find
	.Text = "(a)([0-9]{1,})(a)"
	.Replacement.Text = "\2"
	.Forward = True
	.Wrap = wdFindContinue
	.Format = True
	.MatchWildcards = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert raw field codes to plain text and back again ugcheleuce Word VBA 3 02-14-2017 05:03 AM
Convert endnotes into plain text exactly Macro Needed To Convert Text in Word to Plain Text and Back to Word rsrasc Word VBA 5 12-18-2015 07:13 AM
Convert endnotes into plain text exactly Convert image-text hybrids into plain text morlack Excel 4 12-03-2014 05:29 PM
Convert endnotes into plain text exactly How to convert endnotes in a text doc to Word endnotes? Dickison Word VBA 4 10-06-2012 09:11 PM
My plain text post got converted to rich text in a reply, how to convert it back? david.karr Outlook 0 01-05-2012 09:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:08 AM.


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