xl2007 problem, points(i).datalabel.top gives overflow

B

bmurphy

I have a macro that modifies the position of chart point datalabels.

When changing the .Top property I get an "overflow" run time error,
but then in debug mode I can step through the offending statement and
don't get the error.

curve.Points(i).DataLabel.Top = curve.Points(i).DataLabel.Top - 3

This very old code that runs in all earlier versions of Excel.
Grrrrrr!

Does anyone know what to do about this?

Thanks,

Brian Murphy
 
B

bmurphy

I have a macro that modifies the position of chart point datalabels.

When changing the .Top property I get an "overflow" run time error,
but then in debug mode I can step through the offending statement and
don't get the error.

curve.Points(i).DataLabel.Top = curve.Points(i).DataLabel.Top - 3

This very old code that runs in all earlier versions of Excel.
Grrrrrr!

Does anyone know what to do about this?

Thanks,

Brian Murphy


I found a workaround by selecting the chart point, and then using
selection.datalabel.top

Brian
 

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