+ Reply to Thread
Results 1 to 4 of 4

Is there a shortcut key for subscript or superscript in excel?

  1. #1
    Brady
    Guest

    Is there a shortcut key for subscript or superscript in excel?



  2. #2
    Bill Martin -- (Remove NOSPAM from address)
    Guest

    Re: Is there a shortcut key for subscript or superscript in excel?

    Not directly that I'm aware of -- unless you've got some font that
    supplies them.

    However you can type x2, for example, then go back and highlight the 2,
    then from the format cell panel you can tell it to make that a
    superscript, etc.

    Bill

  3. #3
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    There is no built in shortcut, however you can add these macros to create one for each:

    Note: this will format the cell only and will affect ALL text in that cell. It will not work on "selected text" within the cell. Macros cannot be run whilst in the Edit mode!

    In your workbook, open the VBA editor (Alt+F11) and in the Project pane (left side) right click on your workbook's VBAProject and select Insert>Module

    In the window that opens on the right, paste these macros:

    Sub Macro1()
    ' Keyboard Shortcut: Ctrl+y
    '
    With Selection.Font
    .Superscript = True
    End With
    End Sub

    Sub Macro2()
    '
    '
    ' Keyboard Shortcut: Ctrl+j
    '
    With Selection.Font
    .Subscript = True
    End With
    End Sub

    Close the VBA window. Press Ctrl+F8 to open the Run Macro dialog. Select the Superscript macro with a *single* click then click Options. Enter "j" (no quotes) for the shortcut key and optionally, enter a description. Click OK, then select and repeat for Subscript, entering "u" for shortcut key. Click OK then Cancel to exit the dialog box.

    Save your file! Now, pressing CTRL+u or CTRL+j changes text in the selected cell(s) to super- or sub- script.

    Good Luck.
    Last edited by swatsp0p; 02-01-2005 at 11:15 AM. Reason: additional information...
    Bruce
    The older I get, the better I used to be.
    USA

  4. #4
    Dave Peterson
    Guest

    Re: Is there a shortcut key for subscript or superscript in excel?

    You may want to look at John Walkenbach's addin:
    http://j-walk.com/ss/excel/files/supersub.htm

    Brady wrote:

    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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