Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide or unhide one or two autoshapes


Hi,

Is it possible to hide and unhide one or two autoshapes with VBA (no
all autoshapes) and how do you do it.

Werne

--
werne
-----------------------------------------------------------------------
werner's Profile: http://www.hightechtalks.com/m39
View this thread: http://www.hightechtalks.com/t229815

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default Hide or unhide one or two autoshapes

for example to hide

ActiveSheet.Shapes("Oval 2").Select
Selection.Visible = False

--
Greetings from New Zealand
Bill K

"werner" wrote in message
...

Hi,

Is it possible to hide and unhide one or two autoshapes with VBA (not
all autoshapes) and how do you do it.

Werner


--
werner
------------------------------------------------------------------------
werner's Profile: http://www.hightechtalks.com/m399
View this thread: http://www.hightechtalks.com/t2298153



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Hide or unhide one or two autoshapes

Very Simply... use their name...

First add to ovals to the active sheet... then
walk through this code using the debugger...

ActiveSheet.Shapes("Oval 1").Visible = False
ActiveSheet.Shapes("Oval 2").Visible = False
ActiveSheet.Shapes("Oval 1").Visible = True
ActiveSheet.Shapes("Oval 2").Visible = True


Brian

"werner" wrote in message
...

Hi,

Is it possible to hide and unhide one or two autoshapes with VBA (not
all autoshapes) and how do you do it.

Werner


--
werner
------------------------------------------------------------------------
werner's Profile: http://www.hightechtalks.com/m399
View this thread: http://www.hightechtalks.com/t2298153



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Hide or unhide one or two autoshapes

Do you know their names:

with worksheets("Sheet1")
.shapes("shape1").visible = true
.shapes("myothershape").visible = true
end with



werner wrote:

Hi,

Is it possible to hide and unhide one or two autoshapes with VBA (not
all autoshapes) and how do you do it.

Werner

--
werner
------------------------------------------------------------------------
werner's Profile: http://www.hightechtalks.com/m399
View this thread: http://www.hightechtalks.com/t2298153


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide or unhide one or two autoshapes


Thanks very much for the quick response.

Werne

--
werne
-----------------------------------------------------------------------
werner's Profile: http://www.hightechtalks.com/m39
View this thread: http://www.hightechtalks.com/t229815

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
Hide/Unhide row VBA Scafidel[_2_] Excel Discussion (Misc queries) 1 March 23rd 09 05:28 PM
Hide/Unhide [email protected] Excel Discussion (Misc queries) 0 July 24th 08 05:02 PM
Hide Unhide Colin Excel Discussion (Misc queries) 4 April 9th 06 05:01 PM
Hide/unhide Jock W Excel Worksheet Functions 4 October 4th 05 05:02 PM
Hide AutoShapes On Excel Worksheet Dave Y Excel Worksheet Functions 5 June 12th 05 04:26 AM


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