+ Reply to Thread
Results 1 to 7 of 7

shortcut to insert custom text

  1. #1
    Registered User
    Join Date
    10-22-2007
    Posts
    4

    shortcut to insert custom text

    I often have to type scientific abbreviations such as mgl-1 (milligrams per litre) or ls-1 (litres per second). The "-1" in these examples are in superscript. Can I create shortcut keys to insert customised text like these?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe you could use auto correct

    http://www.bettersolutions.com/excel...T423112221.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    10-22-2007
    Posts
    4
    Thanks but I can't see how to include superscript in the correction.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if this event macro helps

    Right click your sheet and select view code then paste this in. When you type either mgl-1 or is-1 it will change the 1 to superscript

    Please Login or Register  to view this content.
    HTH

    VBA Noob

  5. #5
    Registered User
    Join Date
    10-22-2007
    Posts
    4

    superscript

    Thanks but can't get it to work. Am using Excel 2003 but shouldn't think this has any bearing.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if this helps. Set to work on Column A which has a dropdown

    VBA Noob
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-22-2007
    Posts
    4

    superscript

    That'll do nicely. Thanks.

+ 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