Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
OneRng values are numbers 1 to 9, such as 123, 124567, 3, 123456789, 456.
If Range("P1") = 3 then I want the 3 in each cell that has a 3, for the 3 to be BOLD and font size to 14. My change code MsgBox correctly returns the POSITION of the P1 value in each cell of OneRng. I can't figure how to use that to do a FONT & BOLD for that position. Thanks. Howard Private Sub Worksheet_Change(ByVal Target As Range) If Target.Count 1 Then Exit Sub If Target < Range("P1") Then Exit Sub Dim OneRng As Range, c As Range Dim pInt As Long, pPos As Long pInt = Range("P1") Set OneRng = Range("E2:M10") For Each c In OneRng If InStr(c, pInt) 0 Then pPos = InStr(c, pInt) MsgBox pPos Else End If Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Increase font size in a check box | Excel Discussion (Misc queries) | |||
Number in cell increase with increase in font size. | Excel Discussion (Misc queries) | |||
Can you keep a cells BOLD Font, cell color size | Excel Discussion (Misc queries) | |||
change font size and bold in cell? | Excel Programming | |||
Changing font size, bold and underline | Excel Programming |