ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Lost X-axis after resizing charts using VB - not sure why... (https://www.excelbanter.com/excel-programming/442360-lost-x-axis-after-resizing-charts-using-vbulletin-not-sure-why.html)

WA

Lost X-axis after resizing charts using VB - not sure why...
 
Hi,
I used this code to resize a bunch of charts:

Set cellsToCover = Sheet1.Range(cell1 & ":" & cell2)
Set chartShape = ActiveChart.Parent
chartShape.Height = cellsToCover.Height
chartShape.Width = cellsToCover.Width
chartShape.Top = cellsToCover.Top
chartShape.Left = cellsToCover.Left

After resizing, the x axis labels have disappeared, but when I check the
chart settings, they are still enabled. I would like to maximize the size of
the chart within the border in order to keep the axis in tact. Any ideas on
how I could go about this in VB, would be a great help.

Thanks,

WA


All times are GMT +1. The time now is 10:38 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com