PC Review


Reply
Thread Tools Rate Thread

2007: .DataLabels.Position

 
 
=?Utf-8?B?TXJU?=
Guest
Posts: n/a
 
      24th Nov 2006
If you programmatically

- set the .DataLabels.Position to (for example) xlLabelPositionRight
- change the .top and .left of some of the labels
- set again the .DataLabels.Position to (for example) xlLabelPositionRight

for position of the labels is not reset to xlLabelPositionRight

This used to be the case with previous versions

MrT
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      28th Nov 2006
What I found was somewhat different:

1. The first label to be moved to a different .Top or .Left position caused
that line to fail. It is as if the chart didn't yet realize that the data
label existed, and DoEvents did not help. With the offending line
highlighted, using F5 to resume the code let it run to completion. Stepping
through using F8 never failed the .Top or .Left line of code.

2. The labels were reset to xlLabelPositionRight. You had to select a chart
element (manually or programmatically) before you could see the final
configuration, perhaps because a redraw was required, but DoEvents wasn't
sufficient. I didn't yet try with ScreenUpdating off and on again.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"MrT" <(E-Mail Removed)> wrote in message
news:8F7627DA-832A-45B7-8F45-(E-Mail Removed)...
> If you programmatically
>
> - set the .DataLabels.Position to (for example) xlLabelPositionRight
> - change the .top and .left of some of the labels
> - set again the .DataLabels.Position to (for example) xlLabelPositionRight
>
> for position of the labels is not reset to xlLabelPositionRight
>
> This used to be the case with previous versions
>
> MrT



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
2007: .top property not working with datalabels =?Utf-8?B?TXJU?= Microsoft Excel Programming 1 28th Nov 2006 01:46 AM
Chart Datalabels.Position Michael Singmin Microsoft Excel Programming 4 12th Nov 2005 07:12 PM
Re: Error 1004 when programming DataLabels.Position =?Utf-8?B?QWxvaw==?= Microsoft Excel Programming 0 25th Aug 2005 11:34 PM
Lock the chart but leave datalabels position editable =?Utf-8?B?Sm95?= Microsoft Excel Charting 1 13th Jun 2005 08:21 PM
Be able to edit position of datalabels in a protected chart. =?Utf-8?B?Sm95?= Microsoft Excel Programming 2 13th Jun 2005 08:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:06 PM.