Adam Feldman
New Member
- Joined
- Mar 21, 2014
- Messages
- 7
I'm rather new to Excel VBA and to be totally honest, the object model throws me a bit. So any help that you are able to give would be greatly appreciated.
My environment: Win7 and Win8, Excel 2007, Excel 2010
I use a program called Advent Axys that embeds a chart within a frame in their application, and it allows for the execution of macros to style the chart. I would like to, using VBA, specify the maximum size of the chart (the dimensions of the frame in this application) in point. It should be noted, however, that my problems with my VBA exist both in standalone worksheets as well as the embedded in Axys.
The sheet has 1-5 items A1:A5 which are datatypes and values in B1:B5. This is used to generate a pie chart which resides in its sheet, Chart1. I have successfully done various manipulations on the chart after having used Charts(1).Activate, and then referencing ActiveChart from there on.
I have seen
referenced in various locations online as the way to do that, however, when I attempt to do that, I receive:
Thanks in advance for your time and help.
My environment: Win7 and Win8, Excel 2007, Excel 2010
I use a program called Advent Axys that embeds a chart within a frame in their application, and it allows for the execution of macros to style the chart. I would like to, using VBA, specify the maximum size of the chart (the dimensions of the frame in this application) in point. It should be noted, however, that my problems with my VBA exist both in standalone worksheets as well as the embedded in Axys.
The sheet has 1-5 items A1:A5 which are datatypes and values in B1:B5. This is used to generate a pie chart which resides in its sheet, Chart1. I have successfully done various manipulations on the chart after having used Charts(1).Activate, and then referencing ActiveChart from there on.
I have seen
Code:
Charts(1).Activate
ActiveChart.Parent.Width = 200
ActiveChart.Parent.Height = 200
Code:
Run-time error '438': Object doesn't support this property or method.
Thanks in advance for your time and help.