Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Range = print area? to unhide rows.

I need to have a button that programmatically unhides any row or rows
users have hidden manually. The archives yield variations of this
type of code:

Range("A1").EntireRow.Hidden = False

I need something a lot more simple along the lines of

ActiveSheet.EntireRow.Hidden = False

something that will just take the activesheet and/or print area and
unhide any rows users need to have hidden before within that range.

Thanks. :oD

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Range = print area? to unhide rows.

ActiveSheet.Cells.EntireRow.Hidden = False

Regards,
Edwin Tam


"StargateFan" wrote:

I need to have a button that programmatically unhides any row or rows
users have hidden manually. The archives yield variations of this
type of code:

Range("A1").EntireRow.Hidden = False

I need something a lot more simple along the lines of

ActiveSheet.EntireRow.Hidden = False

something that will just take the activesheet and/or print area and
unhide any rows users need to have hidden before within that range.

Thanks. :oD


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Range = print area? to unhide rows.

On Wed, 22 Feb 2006 19:04:28 -0800, Edwin Tam
wrote:

ActiveSheet.Cells.EntireRow.Hidden = False

Regards,
Edwin Tam


Thank you, that seems to work perfectly! :oD

"StargateFan" wrote:

I need to have a button that programmatically unhides any row or rows
users have hidden manually. The archives yield variations of this
type of code:

Range("A1").EntireRow.Hidden = False

I need something a lot more simple along the lines of

ActiveSheet.EntireRow.Hidden = False

something that will just take the activesheet and/or print area and
unhide any rows users need to have hidden before within that range.

Thanks. :oD



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 171
Default Range = print area? to unhide rows.

On Thu, 23 Feb 2006 10:37:52 -0500, StargateFan
wrote:

On Wed, 22 Feb 2006 19:04:28 -0800, Edwin Tam
wrote:

ActiveSheet.Cells.EntireRow.Hidden = False


Yup, this works perfectly, thank you!

Was wondering if there is a way to get the cursor to move out of the
selected area once rows become hidden? I tried
ActiveCell.Offset(1, 0).Select, of course, but duh, it moves down one
cell _within_ the hidden selection and I only seem to be able to move
out of the hidden selected area by using the down arrow key. I then
modified the above to:

Selection.End(xlUp).Select
ActiveCell.Offset(1, 0).Select

which works better but the ideal solution would be to do what the down
arrow does so that users are in the row below of what they've just
hidden after using ActiveSheet.Cells.EntireRow.Hidden = False. Is
there a way to do this? Again, googled the archives but I must not be
asking the right question.

Thanks!

Regards,
Edwin Tam


Thank you, that seems to work perfectly! :oD

"StargateFan" wrote:

I need to have a button that programmatically unhides any row or rows
users have hidden manually. The archives yield variations of this
type of code:

Range("A1").EntireRow.Hidden = False

I need something a lot more simple along the lines of

ActiveSheet.EntireRow.Hidden = False

something that will just take the activesheet and/or print area and
unhide any rows users need to have hidden before within that range.

Thanks. :oD



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
Print Area as dynamic range? Michael.Tarnowski Excel Worksheet Functions 1 March 8th 09 04:02 PM
Excel2000:How to link Print Area with a named range Arvi Laanemets Excel Worksheet Functions 5 April 8th 08 02:35 PM
Print area/range Mike D. Excel Discussion (Misc queries) 2 June 30th 05 07:07 PM
Hide, Print, Unhide Rows pfosz Excel Programming 1 November 23rd 04 09:44 PM
Identify and Delete all Rows and Columns NOT in Print Area Keith Young[_2_] Excel Programming 6 December 4th 03 04:36 PM


All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"