Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-08-2018, 03:40 PM
macropod's Avatar
macropod macropod is offline Code to convert numbers to superscript Windows 7 64bit Code to convert numbers to superscript Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
 

Tags
numbers, word vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to convert numbers to superscript VBA code to convert Heading 1, 2, 3 etc. numbering Lady_Laughsalot Word VBA 4 04-18-2018 12:32 AM
Code to convert numbers to superscript Superscript and subscript numbers both appear as subscripts jhkemp Word 7 02-07-2018 02:41 PM
Code to convert numbers to superscript 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft