Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TEXT(F2 "0,0") displays 1 as 01, & how to bold and underline in TE Gary Excel Discussion (Misc queries) 3 December 25th 09 09:36 PM
Combine text from multiple cells into one cell - =(A1&","&A2","&A3 mh Excel Worksheet Functions 5 July 27th 09 02:40 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel: Changing "numeric $" to "text $" in a different cell. Heather_CCF Excel Worksheet Functions 1 September 5th 06 06:06 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"