Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello from Steved
all cells in column C 3547 How does one underline and bold the 4th numeral in this case 7 please. Thankyou. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steve,
If you can live with the cells formatted as strings: Sub Macro1() Dim myS As String Dim myC As Range For Each myC In Intersect(ActiveSheet.UsedRange, Range("C:C")) myS = myC.Value myC.NumberFormat = "@" myC.Value = myS With myC.Characters(Start:=4, Length:=1).Font .FontStyle = "Bold" .Underline = xlUnderlineStyleSingle End With Next myC End Sub Otherwise, the formatting won't take. HTH, Bernie MS Excel MVP "Steved" wrote in message ... Hello from Steved all cells in column C 3547 How does one underline and bold the 4th numeral in this case 7 please. Thankyou. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Steved
Assuming you always want the 4th numeral bolded and underlined try this: Sub Test() Application.ScreenUpdating = False Columns("C").Select For Each cell In Selection With cell.Characters(Start:=4, Length:=1).Font .FontStyle = "Bold" .Underline = xlUnderlineStyleSingle End With Next Application.ScreenUpdating = True End Sub Regards, Per On 13 Nov., 02:50, Steved wrote: Hello from Steved all cells in column C 3547 How does one underline and bold the 4th numeral in this case 7 please. Thankyou. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thankyou.
"Per Jessen" wrote: Hello Steved Assuming you always want the 4th numeral bolded and underlined try this: Sub Test() Application.ScreenUpdating = False Columns("C").Select For Each cell In Selection With cell.Characters(Start:=4, Length:=1).Font .FontStyle = "Bold" .Underline = xlUnderlineStyleSingle End With Next Application.ScreenUpdating = True End Sub Regards, Per On 13 Nov., 02:50, Steved wrote: Hello from Steved all cells in column C 3547 How does one underline and bold the 4th numeral in this case 7 please. Thankyou. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot bold, italicize or underline text - Excel hangs | Setting up and Configuration of Excel | |||
In Excel 2003, I cannot display the toolbar with BOLD,UNDERLINE | Setting up and Configuration of Excel | |||
formatting (underline/bold/strikethrough) in comment boxes | Excel Discussion (Misc queries) | |||
bold italics or underline | Excel Discussion (Misc queries) | |||
Changing font size, bold and underline | Excel Programming |