![]() |
|
#1
|
|||
|
|||
|
Hello everyone,
I have a word document with Endnotes in it, I would like to search and replace them. In the Replace Box I entered: Find What: ^e Replace with: <a id="bn_^&" href="../Text/footnotes.html#n_^&">^&</a> Result: <a id="bn_1" href="../Text/footnotes.html#n_2">3</a> I would like to have this result, don't know how to do that: <a id="bn_1" href="../Text/footnotes.html#n_1">1</a> It is still a footnote, I would like for it to be plain text. I would appreciate any help greatly, thank you, kindest Blessings |
|
#2
|
||||
|
||||
|
A Find/Replace cannot convert endnotes or footnotes to body content.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Thank you,
Is there any other way to change the content? Thanks Kind blessings |
|
#4
|
||||
|
||||
|
There are ways to transfer the content to the body via a macro, but it's not clear where in the body you want that content to go.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#5
|
|||
|
|||
|
Thanks again for your answer!
I would like to find all Endnotes, they are numbered (1,2,3....1000) and then taking each endnote and do this: case Endnote 1: replace the whole Endnote 1 in the word text by this: <a id="bn_1" href="../Text/footnotes.html#n_1">1</a> case Endnote 2: replace the whole Endnote 2 in the word text by this: <a id="bn_2" href="../Text/footnotes.html#n_2">2</a> I would appreciate any further help greatly, thank you, kindest blessings |
|
#6
|
||||
|
||||
|
And what becomes of the content of the endnote/footnote?
PS: It would also help if you stuck to whichever term applies to what you are using. Endnotes are not footnotes. The two are entirely different and require different code to process.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#7
|
|||
|
|||
|
Thank you,
Sorry about that, it is all Endnotes. I don't need the Endnotes anymore, once I have the html replacement set. It is gone be an ebook at the end. Thank you so much, for your help, kindest blessings |
|
#8
|
||||
|
||||
|
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 Mac macro installation & usage instructions, see: http://word.mvps.org/Mac/InstallMacro.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#9
|
|||
|
|||
|
Thank you so very much, that worked
Kindest Blessings
|
|
|
|
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 and replace
|
dirkoo | Word VBA | 2 | 08-14-2013 11:25 AM |
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 |