Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello from Steved
The below works fine on 4 digits ie"2542" but will delete the first 2 digits if they are "00" so please how can I instruct using the below macro to allow "0042" because at the moment it will delet the "00" and leave "42" yes I need it to be please "0042" I Thankyou. Sub Underline4thDigit() Dim RR As Range Dim R As Range Dim WS As Worksheet Set WS = ActiveSheet With WS Set RR = Application.Intersect(.UsedRange, _ .Range(.Cells(5, "D"), .Cells(.Rows.Count, "D"))) End With For Each R In RR.Cells With R.Characters(Start:=4, Length:=1).Font .FontStyle = "Bold" .Color = -16776961 .Underline = xlUnderlineStyleSingle End With Next R End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need formula? to include blank cells in "running balance" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Pivot Table "Include hidden items in totals" | Excel Discussion (Misc queries) | |||
MSNStockQuote AddIn for Excel should include a "YIELD" option. | Excel Discussion (Misc queries) | |||
Automatically include contents of a cell in "Save As..." filename. | Excel Programming |