Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Identify OWC11 spreadsheets

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Identify OWC11 spreadsheets

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

--
Regards,
Tom Ogilvy


"quartz" wrote:

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.

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
Identify files on two diff spreadsheets JoeL Excel Discussion (Misc queries) 1 December 31st 09 07:45 PM
OFFICE WEB COMPONENTS (OWC11) johnb Excel Discussion (Misc queries) 0 February 25th 09 02:57 PM
OWC11 Pivot table with ASP.NET(C#) Dev Charts and Charting in Excel 0 September 7th 05 01:21 AM
Issue with owc11.dll [email protected] Excel Programming 0 June 10th 05 05:42 PM
compare two spreadsheets and identify records that have any change brenped Excel Discussion (Misc queries) 2 May 6th 05 02:09 PM


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