problems with .Crosses and .CrossesAt

C

Ciccio_Drink

hi there,

i'm in trouble again :)

I am designing a Chart with x-axis values going from -430 up to +43
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) an
-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, obtainin
all the possible crossings, but the one I need.

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


Th
 
K

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


Ciccio_Drink wrote :
 
C

Ciccio_Drink

Thx a lot man /bow


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top