Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question on Positioning Bar Chart Labels

Hi,

I have dozens of similar bar charts, each with 8 bars. I would like to
place each bar's lable adjacent to its bottom if it's negative, or
adjacent to its top if it's positive. My problem is that when the data
changed the bar size will charge accrodingly, but the lables don't
move at all. I have to manually put them to the right places. Could
some one help me with some codes so that the lable will move with its
bar when the data change.

Thank you very much in advance.

Regards,
Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Question on Positioning Bar Chart Labels

Hi micahel
try this

Sub position_labels()
For Each ss In ActiveChart.SeriesCollection
values_array = ss.Values
For n = 1 To ss.Points.Count
If values_array(n) < 0 Then ss.Points(n).DataLabel.Position
xlLabelPositionInsideBase Else ss.Points(n).DataLabel.Position
xlLabelPositionOutsideEnd
Next
Next
End Su

--
Message posted from http://www.ExcelForum.com

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
Need help positioning data labels Bob Charts and Charting in Excel 3 February 12th 10 02:21 PM
Auto positioning of labels outside pie slices Steven Charts and Charting in Excel 3 September 24th 09 04:50 PM
Positioning a drawn line shape on a chart Tammy Charts and Charting in Excel 3 September 8th 08 03:04 PM
Unlocking The Positioning Grid And Printing Question Robert11 New Users to Excel 3 November 25th 07 02:54 PM
excel chart size using inside positioning Travis Charts and Charting in Excel 2 February 15th 05 04:10 AM


All times are GMT +1. The time now is 03:39 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"