Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default highlighting rows when a value has been found

hi,

i am using the find method, and at present it highlights only the value that
i have asked it to found.
i would like it to highlight the entire row or column where the value lies.
is this possible?
look forward to your replies.
thanks

mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default highlighting rows when a value has been found

lots of options, depending on how you want to highlight the row but the
simplest might be.....

Rows(Activecell.Row).Select

--
Cheers
Nigel



"mike" wrote in message
...
hi,

i am using the find method, and at present it highlights only the value

that
i have asked it to found.
i would like it to highlight the entire row or column where the value

lies.
is this possible?
look forward to your replies.
thanks

mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default highlighting rows when a value has been found

or simpler/more intutitive

activeCell.Entirerow.Select

--
Regards,
Tom Ogilvy

"Nigel" wrote in message
...
lots of options, depending on how you want to highlight the row but the
simplest might be.....

Rows(Activecell.Row).Select

--
Cheers
Nigel



"mike" wrote in message
...
hi,

i am using the find method, and at present it highlights only the value

that
i have asked it to found.
i would like it to highlight the entire row or column where the value

lies.
is this possible?
look forward to your replies.
thanks

mike





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default highlighting rows when a value has been found

Mike,

Select row or column ....

With Worksheets(1).Range("a1:a500")
Set c = .Find("B", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
Rows(c.Row & ":" & c.Row).Select
Columns(c.Column).Select
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With


HTH

"mike" wrote:

hi,

i am using the find method, and at present it highlights only the value that
i have asked it to found.
i would like it to highlight the entire row or column where the value lies.
is this possible?
look forward to your replies.
thanks

mike

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default highlighting rows when a value has been found

thanks for that.
mike

"Toppers" wrote:

Mike,

Select row or column ....

With Worksheets(1).Range("a1:a500")
Set c = .Find("B", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
Rows(c.Row & ":" & c.Row).Select
Columns(c.Column).Select
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With


HTH

"mike" wrote:

hi,

i am using the find method, and at present it highlights only the value that
i have asked it to found.
i would like it to highlight the entire row or column where the value lies.
is this possible?
look forward to your replies.
thanks

mike



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
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
Highlighting Rows with VB. Xman Excel Worksheet Functions 12 January 23rd 09 12:48 PM
Found Cell Highlighting after Search ULNazarene Excel Discussion (Misc queries) 1 August 21st 07 07:31 PM
Highlighting Found Text in Excel Wordgeek Excel Discussion (Misc queries) 1 September 13th 05 01:32 PM
highlighting rows [email protected] Excel Programming 1 May 28th 04 02:58 AM


All times are GMT +1. The time now is 02:57 PM.

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

About Us

"It's about Microsoft Excel"