#1
|
|||
|
|||
Put a "close brackets" at the end of footnotes
Hi,
I want put a ")" at the end of all footnotes. Using the "formatting reveal" button (or whatever it's called), I can see there is a full-stop, space, and paragraph mark ("¶") at the end of each footnote. So by putting the following into the Find box: . ^13 and the following into the Replace box: ). ^13 it should insert the "close brackets". But it doesn't. When I click "Find next" it finds it alright, but it when I click "replace" - nothing happens. Anyone? |
#2
|
|||
|
|||
the following into the Find box:
. ^p and the following into the Replace box: ). ^p |
#3
|
|||
|
|||
Thanks Charles,
I had already tried that - it does the same thing, i.e. no-thing. Further suggestions are welcome. P.S. it does the same whether or not wildcards are selected. P.P.S - I've tried it on newly created footnotes in a new document as well, so it doesn't appear to be a problem specific to one document. I'd be very surprised if I'm the first person in history to notice this issue. There's bound to be a fairly straight-forward answer. |
#4
|
|||
|
|||
Are you in the footnotes story when you run the Replace?
Click in a footnote when you do this. |
#5
|
|||
|
|||
Yes, like I said, when i click "find next" it finds what's in the "find what" box no problem so that the full stop, space, and paragraph mark are highlighted/selected in the footnotes, but when i click "replace" nothing happens.
Are you saying that you've tried putting the codes I've supplied into "find and replace" and tried it on a document with footnotes and it worked fine? |
#6
|
|||
|
|||
Quote:
No, John, I'm saying that this is what I expect based on 20+ years of experience using Word and replacing paragraph marks. I did not try to replicate your problem document. You do not want Wild Cards enabled for this replace. If you want to attach a document where this is not working, I will be happy to look at it. How to attach a screenshot or file in this forum. |
#7
|
|||
|
|||
That'd be great Charles,
Thanks for your help, I've tried uploading/attaching an example file. Last edited by Charles Kenyon; 11-10-2020 at 02:09 PM. Reason: remove attachment at request of poster |
#8
|
|||
|
|||
I've just noticed that in the example file I've sent you, it works on the last footnote for some reason but not on the others. On the other documents I have it works on none of them (the last footnote included).
|
#9
|
|||
|
|||
In your document it worked fine except that I got an extra paragraph mark, probably because it is a footnote. When I replaced
Find text: ". ^p" with Replace text "). " it worked fine. (the quotation marks are not typed) Here is a temporary link to the document: Dropbox - deleteme footnote replace Test file for Charles Kenyon - problem footnotes.docx - Simplify your life |
#10
|
|||
|
|||
Sorry for the delay in replying Charles, the internet got cut off.
It certainly doesn't work on my computer. I'll have access to another computer later on - I'll try it on that and let you know how it goes. Many thanks |
#11
|
|||
|
|||
Try with Word in safe mode.
Open Office apps in safe mode on a Windows PC - Microsoft Office |
#12
|
|||
|
|||
Thanks Charles,
I've tried it on both computers, one with Windows 10 and the other Windows 7. Both do exactly the same. "Find" will find/select the area I want changed, but won't make the change when "replace" is clicked. Using safe mode on both computers made no difference. It only works on the last footnote (regardless of safe mode), but that's not much good of course when there are often about 15 footnotes per page. When i tried the other computer (Windows 7), i used an entirely new document with no relation to the documents I'd been using on the Windows 10 computer. Inserted a few footnotes into a blank document and tried it - it still didn't work. (Edit: I said above that it only works on the last footnote, but even that is only true on some documents, often it doesn't work on the last footnote either). |
#13
|
||||
|
||||
I agree John, it doesn't work for me in the footnotes either. The paragraph mark at the end of each footnote appears to be a protected species (we can find it but can't replace it with another one).
You might need to use a macro to do the task. Code:
Sub FixFN() Dim aFN As Footnote, aRng As Range For Each aFN In ActiveDocument.Footnotes Set aRng = aFN.Range aRng.Collapse Direction:=wdCollapseEnd aRng.MoveStart Unit:=wdCharacter, Count:=-2 aRng.Text = "). " Next aFN End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#14
|
|||
|
|||
That's great Andrew, thank you very much. I wish I had your knowledge of macros etc.
I'm sorry I haven't replied to your comment on the other thread, I've been very busy, but I will do very soon. Thanks again. |
#15
|
|||
|
|||
Did you try my suggestion that does not replace the paragraph mark?
Quote:
Note, there is no ^p in the replacement text. That works for me. In theory, it should be deleting the paragraph mark, but it does not. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook "Read Email" Window: ESC doesn't close? | ShankedS | Outlook | 0 | 11-17-2015 09:55 AM |
Word 2013 "trying to recover your information" when I close it | anparkinson | Word | 2 | 03-16-2015 11:09 AM |
Documents hung up, Word won't close due to "Changes made..to global template Normal.dotm" | pagskg | Word | 2 | 07-23-2014 12:54 PM |
How to get rid of "mailto" and brackets around email addresses? | webgrunt | Outlook | 2 | 12-08-2011 04:51 AM |
Why the number is close to the heading in the "table of content"? | Jamal NUMAN | Word | 3 | 09-05-2011 11:53 AM |