Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default xl2007 problem, points(i).datalabel.top gives overflow

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default xl2007 problem, points(i).datalabel.top gives overflow

On May 2, 9:14 pm, wrote:
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataLabel.Font.ColorIndex vs DataLabel.Text (Private Sub does not work in excel 2003) God Itself Charts and Charting in Excel 4 April 22nd 09 03:40 PM
Problem with Datalabel in Stacked bar charts Shyam Charts and Charting in Excel 6 March 20th 07 10:04 AM
A curious OVERFLOW problem Myles[_7_] Excel Programming 5 December 10th 05 12:32 AM
Problem with overflow Peter Excel Programming 1 November 2nd 05 06:34 PM
Overflow Problem D[_6_] Excel Programming 7 August 11th 04 06:06 PM


All times are GMT +1. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"