#1
|
|||
|
|||
Code to convert numbers to superscript
I have a document that is laid out like a Bible... it has a number in front of sentences. I want those numbers to be superscripted and possibly changed in color (red or blue or green). Is this possible with WORD VBA?
|
#2
|
||||
|
||||
You don't need VBA for this; all you need is a wildcard Find/Replace, where:
Find = [0-9]{1,} Replace = ^& and you set the replacement font attributes to your preferred colour (possibly even bolded to make them stand out more) and superscripted. You could, of course, record the Find/Replace as a macro.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Quote:
|
Tags |
numbers, word vba |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA code to convert Heading 1, 2, 3 etc. numbering | Lady_Laughsalot | Word VBA | 4 | 04-18-2018 12:32 AM |
Superscript and subscript numbers both appear as subscripts | jhkemp | Word | 7 | 02-07-2018 02:41 PM |
Find superscript numbers with a prefix of some default text | AlexandarR | Word | 7 | 05-20-2015 07:57 AM |
Search a cell that contains words and numbers and convert the numbers to metric | Carchee | Excel Programming | 36 | 10-08-2014 03:16 PM |
can word convert numbers? | koolfire | Word | 2 | 01-07-2012 02:12 PM |