![]() |
|
#1
|
|||
|
|||
![]()
Actually, do you have any ideas for improving this code? Right now, the code can make subscript or remove subscript on one click, but ONLY if you click on the WHOLE cell (i.e. A4, B2, etc). I'm wondering how to alter this so that I can highlight one or two things in a cell for subscripting (i.e. Ba2CuO3 - only the numbers, not the whole cell entry).
Bryan (sorry - I don't know where the code box button is here) Sub Subscript() If Selection.Font.Subscript = True Then With Selection.Font .Subscript = False End With Else With Selection.Font .Subscript = True End With End If End Sub |
![]() |
Tags |
ribbon, subscript, superscript |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel 2010 view of cel missing | isla | Excel | 2 | 09-27-2013 09:35 AM |
Creating custom tabs for Word & Excel 2003 on a Windows 7 OS | Skarab | Office | 1 | 07-05-2010 09:23 AM |
Embedded Excel Spreadsheet in Word Loses Ribbon | amoncur | Word | 0 | 07-03-2010 09:22 PM |
Embedded Excel Graphs - Custom Formatting | Cody | Drawing and Graphics | 0 | 07-02-2010 02:30 PM |
Excel Error Loading Custom UI XML | sumdumgai | Office | 1 | 05-10-2010 06:59 PM |