Consulting

Results 1 to 6 of 6

Thread: Solved: Position Values on Stack Bar chart

  1. #1
    VBAX Expert Shazam's Avatar
    Joined
    Sep 2005
    Posts
    530
    Location

    Solved: Position Values on Stack Bar chart

    Hopefully this make sense, I would like a macro to position the values on the chart of series (1) to the end of the bar this will be a daily occurrences. I left a before and after worksheet to give you a visual sense. I got this code from Killian but I do not know how to modifiy it.

    http://vbaexpress.com/forum/showthre...ighlight=chart


    [VBA]
    With ActiveChart.SeriesCollection(1)
    For intPoint = 1 To .Points.Count
    .DataLabels(intPoint).Top = _
    ActiveChart.SeriesCollection(1).DataLabels(intPoint).Top - 1
    Next
    End With
    [/VBA]
    SHAZAM!

  2. #2
    VBAX Expert Shazam's Avatar
    Joined
    Sep 2005
    Posts
    530
    Location
    Is this possible?
    SHAZAM!

  3. #3
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    Hi,

    It's a default Alignment position, InsideEnd, or am I missing something.



    With data labels selected the macro recorder produced this
        With Selection
            .HorizontalAlignment = xlCenter
            .VerticalAlignment = xlCenter
            .Position = xlLabelPositionInsideEnd
            .Orientation = xlHorizontal
        End With
    Cheers
    Andy

  4. #4
    VBAX Expert Shazam's Avatar
    Joined
    Sep 2005
    Posts
    530
    Location
    Quote Originally Posted by Andy Pope
    Hi,

    It's a default Alignment position, InsideEnd, or am I missing something.



    With data labels selected the macro recorder produced this
        With Selection
            .HorizontalAlignment = xlCenter
            .VerticalAlignment = xlCenter
            .Position = xlLabelPositionInsideEnd
            .Orientation = xlHorizontal
        End With

    How did I missed that. Thank You very much Andy Pope.
    SHAZAM!

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Its easy to miss Shaz. I had a similar problem in charting, and I couldn't find the solution. The chart OM is a little bit scattered and non-intuitive IMO, which is why we need people like Andy and Jon Peltier.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Expert Shazam's Avatar
    Joined
    Sep 2005
    Posts
    530
    Location
    Quote Originally Posted by xld
    Its easy to miss Shaz. I had a similar problem in charting, and I couldn't find the solution. The chart OM is a little bit scattered and non-intuitive IMO, which is why we need people like Andy and Jon Peltier.


    I totally agree with you.
    SHAZAM!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •