Hi have a named range with 10 rows...
I want to mark/hide the last 3 rows of this range depending on a cell
value...
anyone know how to do this?

Signature
Ctech
Carim - 21 Mar 2006 13:42 GMT
Hi Ctech,
Go head with defining your condition and use :
ActiveSheet.Rows("7:10").EntireRow.Hidden = True
ActiveSheet.Rows("7:10").EntireRow.Hidden = False
HTH
Carim
Ardus Petus - 21 Mar 2006 14:10 GMT
Id rather use:
Range("myname").rows("7:10").entirerow.hidden = True/False
--
AP
> Hi have a named range with 10 rows...
>
> I want to mark/hide the last 3 rows of this range depending on a cell
> value...
>
> anyone know how to do this?
Tom Ogilvy - 21 Mar 2006 14:31 GMT
set rng = range("Named")
if rng.rows.count > 3 and rng.areas.count = 1 then
rng.offset(rng.count-3,0).Resize(3).EntireRow.Hidden = True
end if
would be a generalized approach

Signature
Regards,
Tom Ogilvy
> Hi have a named range with 10 rows...
>
> I want to mark/hide the last 3 rows of this range depending on a cell
> value...
>
> anyone know how to do this?