![]() |
#1
|
|||
|
|||
![]()
Hi, I am hoping someone can help.
I have a very long document with hundreds of footnotes. The footnote numbers are in round brackets (eg "(1)"). I need to remove the brackets but leave the footnote mark numbers in place. Word will let me find a footnote mark (^f) but not use it in the replace box so I cannot find (^f) and replace with ^f. I cannot figure out how to do this using find and replace without doing a global find and replace for every bracket in the document (thereby also deleting the brackets I need to keep) or by doing it one-by-one which - will take forever. Is it possible to do this quickly with either a global find and replace or a macro? Many thanks! |
#2
|
||||
|
||||
![]()
Assuming the footnote references and parentheses are superscripted - which is the norm - you should be able to do that with a wildcard Find/Replace, where:
Find = [\(\)] with the superscript font attribute Replace = nothing
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Hi, thanks for the response.
I tried using this find and request command but it made 0 replacements. To clarify I put [\(\)] in the find box and nothing in the replace box. I went into format/font and ticked superscipt in the find box. I then tried ticking "use wildcards" but this also failed to make any changes. Is it possible that I am doing this incorrectly somehow? The footnote numbers are superscript numbers, but they are also linked footnote references. When I hover over the numbers they show a little box with the footnote text. I'm not sure if this makes a difference to the type of command needed? |
#4
|
||||
|
||||
![]()
Are your footnote references and parentheses actually superscripted? The steps you described are correct for superscripted parentheses - regardless of whether they're associated with footnote references.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Thanks for replying. I think I see the problem. The footnote number is superscripted but the parentheses are not. They are just ordinary text.
|
#6
|
||||
|
||||
![]()
OK, in which case, omit the superscript attribute from the Find expression. Do note that the result if you use Replace All will be the deletion of all parentheses in the document.
Alternatively, you could use a macro like: Code:
Sub ClrFtNtParens() Application.ScreenUpdating = False With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "(^f)" .Forward = True .Wrap = wdFindStop .Format = False .MatchWildcards = False End With Do While .Find.Execute .Characters.First.Delete .Characters.Last.Delete .Collapse wdCollapseEnd Loop End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]()
Yes, I can't delete every parenthesis unfortunately.
The macro worked perfectly! You have saved me many hours of work. Thank you so much Paul, I sincerely appreciate your help. |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jaanross | Word | 5 | 02-06-2020 12:04 AM |
Extract numbers from parentheses and add them up | pokeyarw | Excel | 9 | 05-06-2019 09:50 PM |
![]() |
RussBell | Mail Merge | 2 | 10-28-2016 05:51 AM |
![]() |
Stacy | Excel | 2 | 09-12-2014 07:03 AM |
Macro to find text only footnote numbers | TimFromPhx | Word VBA | 7 | 04-10-2014 07:05 PM |