Identify OWC11 spreadsheets

G

Guest

I am using Office 2003 on Windows XP.

I need to loop through all of the graphical objects on the activesheet and
determine if one or more OWC11 spreadsheet controls exist there. There may be
zero to many objects of any type. Ideally, the function would return an array
of the object references so I can pass that along to subsequent routines.

Can someone please post some example code illustrating how to do this or at
least how to identify the object types using some sort of name like: OWC11
Spreadsheet, Drawing Object, Graphical Image, etc?

Thanks much in advance.
 
G

Guest

Sub ABC()
Dim oleObj as OLEObject
for oleObj in Activesheet.OleObjects
msgbox typename(oleObj.Object) & " - " & oleObj.Name
Next
End sub



See what you get back.

also look at the shape object/shapes collection
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top