Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Identifying embedded object # and location

We have an embedded object in our worksheet at location say D18.
Programmatically, how do we identify what object is at that location. There
may be more than one embedded object on the worksheet so how would we address
that?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Identifying embedded object # and location

Barb,

You could iterate through all the objects, perhaps, depending on the objects being shapes:

Sub FindD18Shape()
Dim mySh As Shape
For Each mySh In ActiveSheet.Shapes
If mySh.TopLeftCell.Address = "$D$18" Then
GoTo Found:
End If
Next mySh

Found:

MsgBox mySh.Name & " is at " & mySh.TopLeftCell.Address

End Sub

Or you could be more proactive when you insert your objects, and name them when they are inserted,
with names like "objD18"

HTH,
Bernie
MS Excel MVP


"Barb Reinhardt" wrote in message
...
We have an embedded object in our worksheet at location say D18.
Programmatically, how do we identify what object is at that location. There
may be more than one embedded object on the worksheet so how would we address
that?

Thanks




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
embedded ss object peter Excel Programming 0 March 21st 06 06:43 PM
Location of Cell Between Embedded Chart Bill[_30_] Excel Programming 3 February 26th 06 08:14 PM
Non embedded chart location Jonathan Davis Excel Programming 3 May 25th 05 02:49 AM
embedded object C Williams Excel Programming 6 January 17th 05 03:22 AM
Size and location of an embedded chart Raul[_4_] Excel Programming 2 July 3rd 04 06:04 PM


All times are GMT +1. The time now is 03:13 PM.

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"