I have a very large document with more than 2,000 footnotes. For most of them, I placed 2 spaced after the footnote superscript which I would like to reduce to 1. However, I am afraid to do a simple Search/Replace of 2 spaces/1 space, since it may mess up section breaks and various other formatting issues. I tried the “Special” feature in the Search/Replace action. While it allows me to find superscripts followed by 2 spaces, it does not allow me to replace those 2 spaces with 1 without deleting the superscript. Do you have any advice?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Find/Replace after Superscript (2007)
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Find/Replace after Superscript (2007)
- This topic has 11 replies, 5 voices, and was last updated 16 years, 8 months ago.
Viewing 4 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerSeptember 16, 2008 at 8:29 am #1125866 -
WSjscher2000
AskWoody LoungerSeptember 16, 2008 at 8:29 am #1125867Try this. I don’t know whether it is supported in Word 2007, but it works in Word 2003.
- Open the “special” Footnotes pane. To do this:
- Make sure the document you want to search is active
- Press Alt+F11 to open the Visual Basic Editor
- If you do not see a blank area labeled Immediate, press Ctrl+G to open the Immediate window
- Paste the following line of code into the Immediate window and then press Enter at the end to execute it
ActiveDocument.ActiveWindow.View.SplitSpecial = wdPaneFootnotes
- Close the Immediate window and VBE. When you return to your document, the Footnotes pane should be displayed
- Open the “special” Footnotes pane. To do this:
- Click in the footnote pane and call up the Replace dialog. Click the More button to expand it and choose the Down option “just in case”
- Run your replace for 2 spaces to 1. You can test by replacing with an otherwise unused character or set of characters first if you like.[/list]Any luck?
-
WSStuartR
AskWoody Lounger -
WSJudyL
AskWoody LoungerSeptember 16, 2008 at 1:33 pm #1125888 -
WSHansV
AskWoody LoungerSeptember 16, 2008 at 9:28 pm #1125920 -
WSStuartR
AskWoody LoungerSeptember 16, 2008 at 10:01 pm #1125925Hans,
I think the requirement was to leave single spaces alone, and to replace double spaces with single spaces. So you would want something more like.
Sub RemoveDoubleSpacesFromFootnotes()
Dim ftn As Footnote
For Each ftn In ActiveDocument.Footnotes
If ftn.Range.Characters(1) = ” ” And ftn.Range.Characters(2) = ” ” Then
ftn.Range.Characters(1).Delete
End If
Next ftn
End Sub(I guess this might need a check to make sure there are at least two characters in the footnote, but the risk is low).
StuartR
-
-
-
WSMRL
AskWoody LoungerSeptember 17, 2008 at 1:50 am #1125945You all are great! Thanks for the quick replies. I miscommunicated what I am trying to do. I have a doctoral dissertation that is 271,000 words and is over 500 pages (A4) single spaced. There are approximately 2,000 footnotes. So, I am hesitant to do the Search/Replace 2 spaces with 1 given some possible formatting that may get messed up as a result. I would prefer not to have to go back and check every page and paragraph and section breaks for accuracy, since the document is so large. My problem is not with the footnotes themselves. Rather, it is with the footnote superscript in the Normal text. It is after those superscripts that I wish to replace 2 spaces with 1.
-
WSHansV
AskWoody LoungerSeptember 17, 2008 at 2:03 am #1125950You can do that without a macro:
– Select Edit | Replace…
– Click More>>
– Tick the “Use Wildcards” check box.
– Enter the following in the Find what box:(^2 )( )
– Enter the following in the Replace with box:
1
– Click Replace All. Or if you’d like to test a few instances first, click Find Next, then click Replace.
Explanation: the code for a footnote marker is ASCII character 2. ^2 lets you search for ASCII character 2.
The expression (^2 )( ) in the Find what box means that you search for a footnote marker followed by a space and another space, i.e. by 2 spaces. The brackets divide the search text into two parts that you can refer to in the Replace with box as 1 and 2.
We just use 1 in the Replace with box, i.e. the first part: the footnote marker followed by a space. The second part (the second space) is discarded. -
WSMRL
AskWoody Lounger
-
-

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Debian 12.11 released
by
Alex5723
1 hour, 18 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
5 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
2 hours, 29 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
1 hour, 28 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
21 hours, 55 minutes ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
12 hours, 20 minutes ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 day ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
16 hours, 51 minutes ago -
Some advice for managing my wireless internet gateway
by
LHiggins
24 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
18 hours, 47 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 day, 10 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 day, 6 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
20 hours, 24 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
2 days ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
7 hours, 58 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
11 hours, 39 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
2 days, 2 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
2 days, 2 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
1 day, 15 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
2 days, 10 hours ago -
0Patch, where to begin
by
cassel23
2 days, 4 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
3 days ago -
89 million Steam account details just got leaked,
by
Alex5723
2 days, 12 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
3 days, 9 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
3 days ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
2 hours, 13 minutes ago -
Installer program can’t read my registry
by
Peobody
1 hour, 46 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 days, 21 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
3 days, 5 hours ago -
False error message from eMClient
by
WSSebastian42
3 days, 20 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody