WernerGg
New Member
- Joined
- Oct 19, 2010
- Messages
- 43
I have to do with Excel 2007 xy scatter diagrams containing many data series, some of which shall have equal formatting. Actually these charts are some sort of technical drawings consisting of polygons, points, data labels and dimensioning arrows. All of them shall dynamically update from calculated table cells. The formatting for each part shall be defined once manually and then copied to all similar parts.
Unfortunately it is not possible to copy the formatting of a data series to another series. Copy - Paste Special Format is not usable for that. Hence I am writing a VBA program. It deals with Series, Point, DataLabel, ChartFormat, FillFormat, LineFormat, Color, Border, Interior, Font, etc.
The object model for formatting is poor for my opinion. There are many redundancies (from elder excel versions i suppose), call sequence dependencies, attribute interdependencies and so on. The worst thing is that the object models semantic is unclear. A simple question like "what is a line" is incredibly difficult to answer. And the macro recorder does not record those formatting operations. From an OO point of view essential operations are missing. Things like "isequal", "clone/copy", "deep copy" for example.
The MS documentation in VBA object browser, Excel Help and MSN is not sufficient.
Can somebody point me to a good documentation of the model? I read a lot meanwhile. I suppose, Jon Peltier and others in this forum could easily tell me what to read or even have the VBA-code I need.
Thanks,
Werner
Unfortunately it is not possible to copy the formatting of a data series to another series. Copy - Paste Special Format is not usable for that. Hence I am writing a VBA program. It deals with Series, Point, DataLabel, ChartFormat, FillFormat, LineFormat, Color, Border, Interior, Font, etc.
The object model for formatting is poor for my opinion. There are many redundancies (from elder excel versions i suppose), call sequence dependencies, attribute interdependencies and so on. The worst thing is that the object models semantic is unclear. A simple question like "what is a line" is incredibly difficult to answer. And the macro recorder does not record those formatting operations. From an OO point of view essential operations are missing. Things like "isequal", "clone/copy", "deep copy" for example.
The MS documentation in VBA object browser, Excel Help and MSN is not sufficient.
Can somebody point me to a good documentation of the model? I read a lot meanwhile. I suppose, Jon Peltier and others in this forum could easily tell me what to read or even have the VBA-code I need.
Thanks,
Werner