Johnny C
Well-known Member
- Joined
- Nov 7, 2006
- Messages
- 1,069
- Office Version
- 365
- Platform
- Windows
Hi
I'm writing an Add-In so people in my team can copy charts automatically to PowerPoint or Word.
I just tested it on a file where one of the charts has text boxed and an arrow grouped together - these will need to be copied together.
First, How do I tell that the chart is part of a Group. I can use error trapping as it will crash when I do
if it's grouped but I'd rather do it properly if it can.
If I can tell it's in a group, I identify which Group it is part of so that I can then copy the whole group instead of the chart?
TIA
I'm writing an Add-In so people in my team can copy charts automatically to PowerPoint or Word.
I just tested it on a file where one of the charts has text boxed and an arrow grouped together - these will need to be copied together.
First, How do I tell that the chart is part of a Group. I can use error trapping as it will crash when I do
Code:
ActiveChart.ChartArea.Copy
If I can tell it's in a group, I identify which Group it is part of so that I can then copy the whole group instead of the chart?
TIA