Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
mrt mrt is offline
external usenet poster
 
Posts: 70
Default 2007: Parent bug in charts

Select a series on a chart

then run

Set Obj = Selection
Do Until TypeName(Obj) = "Workbook"
Debug.print TypeName(Obj)
Set Obj = Obj.Parent
Loop

This never ends on Excel 2007 because strangely, the Parent of the
ChartGroup (which is the parent of Series), is the Series.

This does not happen with previous versions of Excel.

Do you know anyone being the parent of his parents?

MrT





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Parent bug in charts

Do you know anyone being the parent of his parents?

Actually, it's more like a song I heard years ago, "I'm my own Grampa."

Very strange.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"MrT" wrote in message
...
Select a series on a chart

then run

Set Obj = Selection
Do Until TypeName(Obj) = "Workbook"
Debug.print TypeName(Obj)
Set Obj = Obj.Parent
Loop

This never ends on Excel 2007 because strangely, the Parent of the
ChartGroup (which is the parent of Series), is the Series.

This does not happen with previous versions of Excel.

Do you know anyone being the parent of his parents?

MrT







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Parent bug in charts

Select a point and run this code:
_______

Sub ChartParent()
Dim obj As Object
Dim i As Long

i = 0

Set obj = Selection
Do Until TypeName(obj) = "Workbook"
Debug.Print TypeName(obj)
Set obj = obj.Parent
If i 25 Then
Debug.Print "25 items"
Exit Do
End If
i = i + 1
Loop

End Sub
_______

Excel 2000:

Point
Series
ChartGroup
Chart
ChartObject
Worksheet
_______

Excel 2007:

Point
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
Series
ChartGroup
25 items
_______

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______



"Jon Peltier" wrote in message
...
Do you know anyone being the parent of his parents?


Actually, it's more like a song I heard years ago, "I'm my own Grampa."

Very strange.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"MrT" wrote in message
...
Select a series on a chart

then run

Set Obj = Selection
Do Until TypeName(Obj) = "Workbook"
Debug.print TypeName(Obj)
Set Obj = Obj.Parent
Loop

This never ends on Excel 2007 because strangely, the Parent of the
ChartGroup (which is the parent of Series), is the Series.

This does not happen with previous versions of Excel.

Do you know anyone being the parent of his parents?

MrT









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
Parent of the embeded excel ARHangel Excel Discussion (Misc queries) 1 May 10th 07 11:19 AM
the Parent property mrmack Excel Programming 3 July 13th 06 04:55 AM
<Parent of the Clipboard Tim Childs Excel Programming 5 May 12th 06 07:35 PM
Parent Folder Bruce Excel Programming 2 September 6th 05 03:40 AM
MultiPage Parent Name John Wilson Excel Programming 4 November 19th 04 02:42 PM


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