• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to make ONLY the word 'Approved' a superscript (and NOT the number) with both values in the same

A single cell is formatted to include the word 'Approved' (wherever applicable) + a budget value.
Both values are in a single cell. Approved on the left and the budget value on the right.
I only need to make the word 'Approved' display as a superscript.
My question....
Is there a way to do the same in Excel....???
Thank you.
 
Hi James,

Try below code id sheet module where you are trying this:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

Application.ScreenUpdating = False
Application.EnableEvents = False

If Not Intersect(Target, Range("D2:D10")) Is Nothing Then  ' Change the range to your range.
    With Target.Characters(Start:=1, Length:=8).Font
        .Superscript = True
    End With
   
    With Target.Characters(Start:=9, Length:=6).Font
       
        .Superscript = False
    End With
   
Application.ScreenUpdating = True
Application.EnableEvents = True
End If
End Sub

Regards,
 
Oh its superscript.
Mistakenly mentioned subscript

Edit:
Will not work if you manage the word "approved" with custom formatting.
 
Last edited:
Back
Top