LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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?



 
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 09:37 AM.

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"