finding the parent row of a cell in VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
for each cell in column
if cell.value = Not some_value then
cell.entirerow.hidden = true
end if
next cell
 
Many Thanks.

Andrew.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top