Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Hide Selected Objects

Hi,

Anyone know how can i hide selected objects only instead of hiding all
objects in my worksheet?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Hide Selected Objects

Hi,

If you are refering to the command Tools, Options, View, Objects Hide All,
then the answer there is no such feature built into Excel.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Clara" wrote:

Hi,

Anyone know how can i hide selected objects only instead of hiding all
objects in my worksheet?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Hide Selected Objects

With VBA you could probably do this.

What type of objects are you referring to?

Selectable objects you have inserted like drawing objects or pictures?


Gord Dibben MS Excel MVP


On Sat, 27 Jun 2009 07:09:01 -0700, Clara
wrote:

Hi,

Anyone know how can i hide selected objects only instead of hiding all
objects in my worksheet?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Hide Selected Objects

Hi,

Following up on Gord's suggestion here is code that will hide the selected
objects, in this case shapes:

Selection.ShapeRange.Visible = False

Keep in mind that you can't reverse this by writing

Selection.ShapeRange.Visible = True

besause you can't select things you can't see. So in that case you need
something like this

ActiveSheet.Shapes.Range(Array("Rectangle 1", "Rectangle 2")).Visible = True

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Gord Dibben" wrote:

With VBA you could probably do this.

What type of objects are you referring to?

Selectable objects you have inserted like drawing objects or pictures?


Gord Dibben MS Excel MVP


On Sat, 27 Jun 2009 07:09:01 -0700, Clara
wrote:

Hi,

Anyone know how can i hide selected objects only instead of hiding all
objects in my worksheet?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Hide Selected Objects

Hi Clara

Try the below macro. You dont need to select the object; instead just select
the cell range. All objects within selection will be hidden

Sub Macro1()
Dim obj As Object
For Each obj In ActiveSheet.DrawingObjects
If Not Intersect(obj.TopLeftCell, Selection) Is Nothing Then
obj.Visible = False
End If
Next
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Clara" wrote:

Hi,

Anyone know how can i hide selected objects only instead of hiding all
objects in my worksheet?

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
formula 2 display selected objects ONLY in new sheet from another Andrew Langner Excel Worksheet Functions 1 February 5th 09 01:31 AM
Try to hide column - message "can not shift objects off sheet Aterry Excel Discussion (Misc queries) 1 January 26th 06 04:05 PM
How do I make excel hide columns when it says cannot move objects Dale Excel Discussion (Misc queries) 0 November 10th 05 02:44 PM
Cannot hide column "cannot shift objects off sheet" achidsey Excel Discussion (Misc queries) 3 September 15th 05 01:17 AM
Hide embedded objects contained in row that is filtered out Jim2003 Excel Discussion (Misc queries) 1 July 13th 05 05:31 PM


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