Hide ROW dependent on value

M

MikeF

Would like to hide one row if its value = the value of a range name.
Came up with the following.
It doesn't return an error, but it doesn't hide the row, even though the
value of Adj Rev is equal to [rangename] Rev.

Cells.Find(What:="Adj Rev").Offset(0, 1).Activate
If ActiveCell.Value = Rev.Value Then
EntireRow.Hidden = True
End If

Any assistance will be greatly appreciated.
Thanx,
- Mike
 
N

ND Pard

Instead of:
If ActiveCell.Value = Rev.Value Then

try:
If ActiveCell.Value = Range("Rev").Value Then

Hope it works for ya.

Good Luck.
 

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

Top