AJP Excel Information AJP Excel Information

Create Axis Labels using Textboxes

 
 

 

 
The control you have over the alignment of the axis labels is very limited and you can not control the gap between the left of the chart and the left of the plotarea that is used by the labels.
I have written VBA code that replaces the built-in axis labels with textboxes.
The example workbook contains 2 charts. 1 with built-in alignment and one that will use textboxes.
The required alignment can be chosen from 2 dropdown lists.
  The code works with xl2007 charts and text boxes. One thing to note is that not all the alignment options are available in xl2007.
   


Created August 2004
Last updated 5th August 2014 


Return to main page Chart Section VBA section Fun and games section Forum files Tips section Links section Book section Site information Site Search RSS feed Top of page


Microsoft® and Microsoft® Excel are registered trademarks of the Microsoft Corporation.
andypope.info is not associated with Microsoft. Copyright ©2007-2016 Andy Pope