Lost X-axis after resizing charts using VB - not sure why...

W

WA

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top