Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Selection vs Objects

I am trying to unhide all the rows which are currently hidden using a
starting point as anchor to the test range.

Why does the code below not work?


Range(PosStart, PosStart.End(xlDown)).EntireRow.Hidden = False

Range(PosStart, PosStart.End(xlDown)).Select - selects the correct range

Selection.EntireRow.Hidden = False - unhides the required rows

When used together they achieve the desired effect, but why do I have to use
the selection object, why does it not seem to work when using just objects?

PWS


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Selection vs Objects

Paul,

It works for me: XL XP, Windows XP Pro.

Set PosStart = Range("B2")
Range(PosStart, PosStart.End(xlDown)).EntireRow.Hidden = False

HTH,
Bernie
MS Excel MVP

"Paul Smith" wrote in message
...
I am trying to unhide all the rows which are currently hidden using a
starting point as anchor to the test range.

Why does the code below not work?


Range(PosStart, PosStart.End(xlDown)).EntireRow.Hidden = False

Range(PosStart, PosStart.End(xlDown)).Select - selects the correct range

Selection.EntireRow.Hidden = False - unhides the required rows

When used together they achieve the desired effect, but why do I have to

use
the selection object, why does it not seem to work when using just

objects?

PWS




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
Excel 2007: Selecting multiple objects by drawing a selection box panalysis Excel Discussion (Misc queries) 4 April 2nd 23 07:41 PM
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Unable to remove Sheet objects in the Microsoft Excel Objects Adrian[_7_] Excel Programming 1 August 26th 04 10:49 PM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM


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