Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default mark the last three rows in a names range


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?


--
Ctech


------------------------------------------------------------------------
Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=524754

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default mark the last three rows in a names range

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default mark the last three rows in a names range

Id rather use:

Range("myname").rows("7:10").entirerow.hidden = True/False

--
AP

"Ctech" a écrit dans le
message de ...

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?


--
Ctech


------------------------------------------------------------------------
Ctech's Profile:

http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=524754



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default mark the last three rows in a names range

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

--
Regards,
Tom Ogilvy


"Ctech" wrote:


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?


--
Ctech


------------------------------------------------------------------------
Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745
View this thread: http://www.excelforum.com/showthread...hreadid=524754


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
Mark Rows for scrolling Doug Mc New Users to Excel 2 November 23rd 09 12:35 AM
using conditional formatting to mark repeated names in list? Mansure Morgan Excel Discussion (Misc queries) 3 June 2nd 06 01:06 PM
how do i mark range from A1 to DV5000 without scrolling? [email protected] Excel Discussion (Misc queries) 4 December 8th 05 02:47 AM
Mark a range from activecell Ctech[_32_] Excel Programming 5 November 2nd 05 10:38 AM
Mark a range from activecell Ctech[_31_] Excel Programming 0 November 2nd 05 10:32 AM


All times are GMT +1. The time now is 08:27 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"