Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to change the font of the last two characters in a cell, but
only for certain cells (make last two superscript and underlined). Does anybody have any suggestions? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With Range("A2").Characters(Len(Range("A2").Text) - 1, 2).Font
..Superscript = True ..Underline = True End With The problem with this is that the underlining is at the bottom of the cell, not directly under the superscripted characters. I don't think there is a workaround for this. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "L Scholes" wrote in message oups.com... I need to change the font of the last two characters in a cell, but only for certain cells (make last two superscript and underlined). Does anybody have any suggestions? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Demo this on a blank worksheet
Sub ShowMe() With ActiveCell .Value = "ABCDEFGHIJK" .Font.Superscript = False .Font.Underline = False With .Characters(Len(ActiveCell.Value) - 1, 2) .Font.Superscript = True .Font.Underline = True End With End With End Sub -- Regards, Tom Ogilvy "L Scholes" wrote: I need to change the font of the last two characters in a cell, but only for certain cells (make last two superscript and underlined). Does anybody have any suggestions? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro that will change the font of a cell if i change a value | Excel Discussion (Misc queries) | |||
Macro to Change Font Color | Excel Programming | |||
macro to white out (to change a font in selected cells) | Excel Programming | |||
How to change font in a macro that inserts a formula in a footer | Excel Programming | |||
Where to stick macro to change default comment font? | Excel Discussion (Misc queries) |