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
- 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?
- Open the “special” Footnotes pane. To do this:
-
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
-
Viewing 4 reply threads -

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
-
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
3 hours, 13 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 hour, 11 minutes ago -
Auto Time Zone Adjustment
by
wadeer
7 hours, 42 minutes ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
5 hours, 22 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
44 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
48 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
1 hour, 10 minutes ago -
Apps included with macOS
by
Will Fastie
48 minutes ago -
Xfinity home internet
by
MrJimPhelps
43 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
41 minutes ago -
Debian 12.11 released
by
Alex5723
1 day, 4 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 day, 8 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
11 hours, 58 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
4 hours, 22 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
2 days, 1 hour ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 15 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
2 days, 4 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 20 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 3 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
5 hours, 53 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 13 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
1 hour, 43 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
1 day, 23 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
3 days, 3 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 11 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
1 day ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 days, 6 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 days, 6 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
55 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 days, 14 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
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.