Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tim tim is offline
external usenet poster
 
Posts: 105
Default Hidden Range

Hello All,

I have a large work sheet with multiple hidden rows. Is
there a simple way to identify the last row of data
(usually hidden) and select the a cell in the following
row.

I can do this by unhiding everything finding the end of
the data (xlDown), identifing the last row then looping
to hide all the appropriate data. I know there must be
something easier.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Hidden Range

Dim cell as Range
set cell = Cells(rows.count,1).End(xlup)

' cell is the last visible cell with a value. Now loop down
set cell = cell.offset(1,0)
do while cell.EntireRow.Hidden = False
set cell = cell.offset(1,0)
Loop

--
Regards,
Tom Ogilvy


"Tim" wrote in message
...
Hello All,

I have a large work sheet with multiple hidden rows. Is
there a simple way to identify the last row of data
(usually hidden) and select the a cell in the following
row.

I can do this by unhiding everything finding the end of
the data (xlDown), identifing the last row then looping
to hide all the appropriate data. I know there must be
something easier.

thanks



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
Paste into range with hidden columns jday Excel Discussion (Misc queries) 0 September 18th 09 04:54 PM
Delete Hidden Named Range Scott Excel Discussion (Misc queries) 3 July 24th 08 09:40 PM
Named range is hidden when using OFFSET() Conan Kelly Excel Discussion (Misc queries) 1 October 8th 07 08:56 PM
Hidden Range Names [email protected] Excel Worksheet Functions 3 August 28th 06 04:12 PM
Summing non hidden values in a range starguy Excel Discussion (Misc queries) 38 May 4th 06 09:38 PM


All times are GMT +1. The time now is 07:54 PM.

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"