#1
|
|||
|
|||
Word macro - Super/sub-script and 2 spaces to 1 space
I'm trying to write a macro in Word that will make 2 spaces into 1 space after a punctuation and formatting section, like this, where the 23-29 will superscripted and be links to references at the end of the document.
dultricies.23-29 Purus I would like the macro to identify the two spaces after the superscript and make it 1 space. Thanks, Chris I tried creating the macro to identify 2 spaces and make it 1 space - that worked. But when I tried to create a macro using wildcard characters or special formatting (superscript), I expected Word to locate the instance and make it one space, but it did not. |
#2
|
||||
|
||||
Are there other instances of double spaces in the document that you want to stay with double spaces?
Show us the macro you created and attach a sample document that shows instances of what needs to be found (and not found)
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
||||
|
||||
Cross-posted (and answered before posting here) at: vba - 2 spaces to 1 space after punctuation and super/subscript - Stack Overflow
For cross-posting etiquette, please read: Excelguru Help Site - A message to forum cross posters
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to highlight only start of line, not past tab spaces (Word 97) | Genericname1111 | Word VBA | 1 | 01-22-2020 11:25 AM |
Spaces not appearing unless I type another word after the space | seanspotatobusiness | Word | 4 | 06-27-2018 04:35 PM |
Replace Two Spaces with One Space | doctorduncan | Word | 2 | 06-08-2018 04:44 PM |
Creating a "super macro" with all kind of functions | Xanthopteryx | PowerPoint | 1 | 06-16-2016 01:38 AM |
replace data from variable with "sub and super script" from excel to word by vba | krishnaoptif | Word VBA | 9 | 06-22-2012 05:08 AM |