Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

mark the last three rows in a names range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ctech - 21 Mar 2006 13:33 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.