Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold all rows where a cell contains text "X"
I want to BOLD all rows where a cell contains text "X" in any cell in
range. Does anyone has the solution? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold all rows where a cell contains text "X"
Hi
Please amend accordingly: Sub PutInBoldXs() Dim r As Range With Range("A1:C10") Set r = .Find("X", LookIn:=xlValues, searchorder:=xlByRows) If Not r Is Nothing Then r.EntireRow.Font.Bold = True End With End Sub HTH Cordially Pascal a écrit dans le message de news: ... I want to BOLD all rows where a cell contains text "X" in any cell in range. Does anyone has the solution? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold all rows where a cell contains text "X"
On May 14, 3:41 pm, "papou" wrote:
Hi Please amend accordingly: Sub PutInBoldXs() Dim r As Range With Range("A1:C10") Set r = .Find("X", LookIn:=xlValues, searchorder:=xlByRows) If Not r Is Nothing Then r.EntireRow.Font.Bold = True End With End Sub HTH Cordially Pascal a écrit dans le message de news: om... I want to BOLD all rows where a cell contains text "X" in any cell in range. Does anyone has the solution?- Hide quoted text - - Show quoted text - Although I had changed the range to A1:H1000, only one row was bold. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold all rows where a cell contains text "X"
Sub PutInBoldXs()
Dim r As Range With Range("A1:C10") Set r = .Find("X", LookIn:=xlValues, searchorder:=xlByRows) If Not r Is Nothing Then r.EntireRow.Font.Bold = True Do Set r = .FindNext(r) If Not r Is Nothing Then r.EntireRow.Font.Bold = True end if Loop While Not c Is Nothing end if End With End Sub " wrote: Sub PutInBoldXs() Dim r As Range With Range("A1:C10") Set r = .Find("X", LookIn:=xlValues, searchorder:=xlByRows) If Not r Is Nothing Then r.EntireRow.Font.Bold = True End With End Sub On May 14, 3:41 pm, "papou" wrote: Hi Please amend accordingly: HTH Cordially Pascal a écrit dans le message de news: om... I want to BOLD all rows where a cell contains text "X" in any cell in range. Does anyone has the solution?- Hide quoted text - - Show quoted text - Although I had changed the range to A1:H1000, only one row was bold. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bold all rows where a cell contains text "X"
On May 14, 7:18 pm, Joel wrote:
Sub PutInBoldXs() Dim r As Range With Range("A1:C10") Set r = .Find("X", LookIn:=xlValues, searchorder:=xlByRows) If Not r Is Nothing Then r.EntireRow.Font.Bold = True Do Set r = .FindNext(r) If Not r Is Nothing Then r.EntireRow.Font.Bold = True end if Loop While Not c Is Nothing end if End With End Sub " wrote: Sub PutInBoldXs() Dim r As Range With Range("A1:C10") Set r = .Find("X", LookIn:=xlValues, searchorder:=xlByRows) If Not r Is Nothing Then r.EntireRow.Font.Bold = True End With End Sub On May 14, 3:41 pm, "papou" wrote: Hi Please amend accordingly: HTH Cordially Pascal a écrit dans le message de news: om... I want to BOLD all rows where a cell contains text "X" in any cell in range. Does anyone has the solution?- Hide quoted text - - Show quoted text - Although I had changed the range to A1:H1000, only one row was bold.- Hide quoted text - - Show quoted text - It work but the system hang??? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
TEXT(F2 "0,0") displays 1 as 01, & how to bold and underline in TE | Excel Discussion (Misc queries) | |||
Combine text from multiple cells into one cell - =(A1&","&A2","&A3 | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Excel: Changing "numeric $" to "text $" in a different cell. | Excel Worksheet Functions | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |