+ Reply to Thread
Results 1 to 4 of 4

Chart X Axis Scaling

Hybrid View

  1. #1
    Registered User
    Join Date
    07-26-2006
    Posts
    19

    Chart X Axis Scaling

    Hello,
    Please help me with macro which can shift (increase by 7)
    X axis scale maximum and minimum values.
    Thanks a lot!

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by proton
    Hello,
    Please help me with macro which can shift (increase by 7)
    X axis scale maximum and minimum values.
    Thanks a lot!
    Did you know what they wee before?
      ActiveSheet.ChartObjects("Chart 1").Activate
        ActiveChart.ChartArea.Select
        ActiveChart.SeriesCollection(1).Values = "=Sheet3!R2C1:R7C1"
    amends the x axis (for series 1), and
        ActiveSheet.ChartObjects("Chart 1").Activate
        ActiveChart.Axes(xlValue).MajorGridlines.Select
        With ActiveChart.Axes(xlValue)
            .MinimumScale = 6
            .MaximumScale = 9
            .MinorUnitIsAuto = True
            .MajorUnitIsAuto = True
            .Crosses = xlAutomatic
            .ReversePlotOrder = False
            .ScaleType = xlLinear
            .DisplayUnit = xlNone
        End With
    End Sub
    adjusts the Y axis limits.

    does this help?
    ---

  3. #3
    Registered User
    Join Date
    07-26-2006
    Posts
    19
    .MinimumScale = 6
    .MaximumScale = 9
    must be variables and avery time must increase by 7

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by proton
    .MinimumScale = 6
    .MaximumScale = 9
    must be variables and avery time must increase by 7
            .MinimumScale = myMinScale
            .MaximumScale = myMaxScale
    which could then be stored, probably as a cell value in a cell of your choice.

    ---

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1