Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default Embedded chart location address

Hello,

Is there a VBA way to return the Range address of an embedded chart.
location on the sheet?

I mean by that the location of the chart as an object itself and not
of its series

Thanks
Avi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Embedded chart location address

The chart object is like a shape object and basically floats above the
sheet. You can get the Top and Left properties of the ChartObject, which
will give you an anchor point, in points, but I don't believe you will get
an address in terms of a cell reference.


"avi" wrote in message
...
Hello,

Is there a VBA way to return the Range address of an embedded chart.
location on the sheet?

I mean by that the location of the chart as an object itself and not
of its series

Thanks
Avi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Embedded chart location address


avi;583029 Wrote:
Hello,

Is there a VBA way to return the Range address of an embedded chart.
location on the sheet?

I mean by that the location of the chart as an object itself and not
of its series

Thanks
Avi



Code:
--------------------

Sub blah()
With ActiveSheet.ChartObjects("Chart 1")
MsgBox Range(.TopLeftCell, .BottomRightCell).Address
Range(.TopLeftCell, .BottomRightCell).Select
End With
End Sub

--------------------


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: 558
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=161354

Microsoft Office Help

  #4   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default Embedded chart location address

Looks great!!!

Thanks

Avi
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
Identifying embedded object # and location Barb Reinhardt Excel Programming 1 September 26th 06 02:05 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
Using =address to provide address location for =average ahills Excel Worksheet Functions 2 November 30th 04 03:10 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 06:14 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"