|
Peltier Technical Services, Inc. Jon's Excel and Charting Pages |
|
Align Excel Charts Using VBAAlign One Chart Atop Another.This zipped workbook contains the code that aligns Chart 2 on top of Chart 1, then erases everything out of Chart 2, except for the plotted series. Originally the charts look like this: ![]() But running the code will turn them into this: ![]() There is not a lot of documentation, but also not a lot of code to wade through. It seems to work pretty well on line and column charts. Sometimes the axis scale parameters don't "take" the first time, so the macro must be run twice. This is not uncommon in chart formatting macros, believe it or not. This kind of effect can usually be done with combination charts, but it is an interesting exercise in the Excel charting object model. |
|
Peltier Technical Services, Inc. Jon's Excel and Charting Pages Peltier Technical Services, Inc., Copyright © 2008. All rights reserved. |