LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to find a Chart embedded in a Sheet?


Hi Gilroy -

Not sure if this completely answers your question, but to get to a chart
embedded in a worksheet (as you have here), you'll want to go through the
ChartObjects collection of the Worksheet object. For example, the following
code will get you the last Chart on the active worksheet (if there are more
than one)

Dim mychart As Chart
Dim icount As Integer

icount = ActiveSheet.ChartObjects.Count
If icount 0 Then
Set mychart = ActiveSheet.ChartObjects(icount).Chart
MsgBox CStr(mychart.ChartType)
End If




 
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
Find within an embedded document object Giggly4g Excel Discussion (Misc queries) 0 July 25th 08 04:18 AM
Formula using array to find embedded value Ted Horsch Excel Discussion (Misc queries) 9 June 23rd 06 04:28 AM
Embedded Chart Versus Chart - ShowDetail Issue [email protected] Charts and Charting in Excel 1 May 14th 06 04:11 PM
Links in Embedded doc within sheet don't change when sheet is copi Dan k Excel Discussion (Misc queries) 0 May 11th 06 05:41 PM
Embedded Chart in Excel Sheet George Charts and Charting in Excel 3 August 4th 05 12:19 PM


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