+ Reply to Thread
Results 1 to 4 of 4

problems with .Crosses and .CrossesAt

  1. #1
    Registered User
    Join Date
    01-31-2006
    Posts
    6

    problems with .Crosses and .CrossesAt

    hi there,

    i'm in trouble again

    I am designing a Chart with x-axis values going from -430 up to +430 and y-axis values going from -2.0E-02 up to 1.8E-02.


    I'd like the axes to cross at their minimum (so point -430 (x-axis) and -2.0E-02 (y-axis) to be the crossing). (default they cross at point 0.0, -430)

    I tried everything with .Crosses = xlMinimum or xlMaximum, obtaining all the possible crossings, but the one I need.

    Of course I could just set the .CrossesAt property at the minimum value, but I am generating dynamically many charts and the minimum/maximum values are not always the same.


    Thx

  2. #2
    keepITcool
    Guest

    Re: problems with .Crosses and .CrossesAt


    Hi,
    I'm not sure this is what you're after but:

    following would use the (actual) axis' minimum
    to set the crosspoint.

    Sub foo()
    With ActiveSheet.ChartObjects(1).Chart
    With .Axes(xlValue)
    .Crosses = xlAxisCrossesCustom
    .CrossesAt = .MinimumScale
    End With
    End With
    End Sub

    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    Ciccio_Drink wrote :

    >
    > hi there,
    >
    > i'm in trouble again
    >
    > I am designing a Chart with x-axis values going from -430 up to +430
    > and y-axis values going from -2.0E-02 up to 1.8E-02.
    >
    >
    > I'd like the axes to cross at their minimum (so point -430 (x-axis)
    > and -2.0E-02 (y-axis) to be the crossing). (default they cross at
    > point 0.0, -430)
    >
    > I tried everything with .Crosses = xlMinimum or xlMaximum, obtaining
    > all the possible crossings, but the one I need.
    >
    > Of course I could just set the .CrossesAt property at the minimum
    > value, but I am generating dynamically many charts and the
    > minimum/maximum values are not always the same.
    >
    >
    > Thx


  3. #3
    Registered User
    Join Date
    01-31-2006
    Posts
    6
    .....



    d'oh I just found out sorry everyone for bothering you


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-31-2006
    Posts
    6
    Thx a lot man /bow



    [QUOTE=keepITcool]Hi,
    I'm not sure this is what you're after but:

    following would use the (actual) axis' minimum
    to set the crosspoint.

    Sub foo()
    With ActiveSheet.ChartObjects(1).Chart
    With .Axes(xlValue)
    .Crosses = xlAxisCrossesCustom
    .CrossesAt = .MinimumScale
    End With
    End With
    End Sub

    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam

+ 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