Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Finding all AutoShapes in workbook

I just came across and AutoShape in a spreadsheet which has a macro assigned
to it. The name of this shape is AutoShape40. This has prompted me to look
and see if there are any other AutoShapes in the model AND are they assigned
to these same macros. What is the easiest way for me to find all the
autoshapes in the model? I am assuming it using a For Next Loop using some
sort of AutoShape collection. I am then assuming that I need to check if
shapes exist and some how trap their location. Perhaps by using the parent
property to trap the sheet name. Any ideas?
Sub ShapeIdentify ()
Dim sh as Worksheet
Dim Shape As Object

For each sh in Worksheets
For each Shape in Shapes
IF Shape exists (???????)
Msgbox("Shape exist on sheet:" & Shape.Parent.Name & ", and is
called: " Shape.Name)
End if
Next
Next sh
End Sub

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Finding all AutoShapes in workbook

Hi Rob. I cannot see an attachment in the newsgroup here. Acutally, I did
not know you could attach anyting here!

Where should I be looking for it?

EM

"Rob Bovey" wrote:

"ExcelMonkey" wrote in message
...
What is the easiest way for me to find all the
autoshapes in the model?


I've attached a utility workbook I use for this purpose. It dumps all
the information about all of the shapes in the currently active workbook
onto its Shapes worksheet. Activate the workbook you want to analyze and run
the EnumerateShapes macro.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Finding all AutoShapes in workbook

Sorry Rob. I just followed the website link

Thanks

"Rob Bovey" wrote:

"ExcelMonkey" wrote in message
...
What is the easiest way for me to find all the
autoshapes in the model?


I've attached a utility workbook I use for this purpose. It dumps all
the information about all of the shapes in the currently active workbook
onto its Shapes worksheet. Activate the workbook you want to analyze and run
the EnumerateShapes macro.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books

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
Finding a Workbook based on a Cell information in another Workbook Walter Excel Worksheet Functions 1 October 10th 09 08:46 AM
Finding specific sheets within a workbook Roy Excel Discussion (Misc queries) 2 August 23rd 05 06:40 PM
Finding data in another workbook JCanyoneer Excel Programming 4 August 17th 05 07:25 PM
Finding out if subroutines exist in another workbook Erich Neuwirth Excel Programming 1 May 24th 04 08:35 AM
Finding duplicate value in another workbook morry[_3_] Excel Programming 4 February 11th 04 10:27 PM


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