+ Reply to Thread
Results 1 to 2 of 2

Superscript and Subscript within a cell VBA.

  1. #1
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Superscript and Subscript within a cell VBA.

    Someone asked (on another forum) what shortcut keys did Super and Sub scripts in Excel. The answer is there is really no keyboard shortcut keys to do that.

    The best answer to the shortcut key was to select the word (or letter) in the formula area and then right click on the selected word and then -> Format Cells...
    On the Format Cells Dialog is a checkbox for Superscript and another for Subscript. If you check these and click OK it will give you what you want...

    This seemed a little too hard so I've created another method for doing the above.

    The following code will allow you to do multiple super or sub scripts at once.

    Run one of the first macros below and it will ask what characters are to be scripted. They you can then click on a single cell or range of cells to do the action.

    I hope some can use this to save themselves some time.


    Please Login or Register  to view this content.
    I've seen other methods where people put brackets around what they want super or sub scripted. Maybe the above method will work better than all that extra typing.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Superscript and Subscript within a cell VBA.

    When I was working in a chemistry lab I always wanted something to do this.

    I found an add-in somewhere that did it. I could have sworn it was from John Walkenbach but a quick search of his site turned up nothing.

    FE2O3
    FE2O3
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. subscript or superscript in formula
    By medo82006 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-04-2015, 11:12 AM
  2. Subscript/superscript in textbox
    By j.morrison in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2011, 05:47 AM
  3. Superscript/Subscript macro help
    By Davep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2010, 05:28 AM
  4. Losing subscript/superscript! Help!
    By hello_lpc in forum Excel General
    Replies: 3
    Last Post: 02-13-2006, 05:00 PM
  5. [SOLVED] superscript/subscript
    By Big Ron in forum Excel General
    Replies: 3
    Last Post: 01-21-2006, 03:50 PM
  6. Subscript & Superscript
    By Karen in forum Excel General
    Replies: 6
    Last Post: 02-22-2005, 07:06 PM
  7. Replies: 3
    Last Post: 02-01-2005, 07:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1