Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default finding the parent row of a cell in VBA

If I have a reference to a particular cell, is there a way getting a
reference to the row which contains that cell?

Essentially what I want to do is filter a worksheet based on a list of values

For Example

for each cell in column
if cell.value = Not some_value then
hide row containing current cell
end if
next cell


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default finding the parent row of a cell in VBA

for each cell in column
if cell.value = Not some_value then
cell.entirerow.hidden = true
end if
next cell


--
HTH

Bob Phillips

"Andrew Marshall" wrote in
message ...
If I have a reference to a particular cell, is there a way getting a
reference to the row which contains that cell?

Essentially what I want to do is filter a worksheet based on a list of

values

For Example

for each cell in column
if cell.value = Not some_value then
hide row containing current cell
end if
next cell




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default finding the parent row of a cell in VBA

Many Thanks.

Andrew.

"Bob Phillips" wrote:

for each cell in column
if cell.value = Not some_value then
cell.entirerow.hidden = true
end if
next cell


--
HTH

Bob Phillips

"Andrew Marshall" wrote in
message ...
If I have a reference to a particular cell, is there a way getting a
reference to the row which contains that cell?

Essentially what I want to do is filter a worksheet based on a list of

values

For Example

for each cell in column
if cell.value = Not some_value then
hide row containing current cell
end if
next cell





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
Finding loops in parent/child relationships GrahamC Excel Discussion (Misc queries) 3 November 22nd 07 05:15 PM
Parent of the embeded excel ARHangel Excel Discussion (Misc queries) 1 May 10th 07 11:19 AM
finding multiple parent-child relationships? Keith R Excel Worksheet Functions 4 April 16th 07 04:13 PM
Sorting Parent Child kcmtnbiker Excel Worksheet Functions 2 March 31st 06 01:54 AM
MultiPage Parent Name John Wilson Excel Programming 4 November 19th 04 02:42 PM


All times are GMT +1. The time now is 09:36 AM.

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"