Page 1 of 1

Delete multiple custom axis

Posted: Wed Mar 26, 2008 10:52 pm
by 15047998
Hi out there,

Scenario: I did create Custom1 to Custom5 axes and want to delete Custom3 and Custom 4 - programatically - h :oops: ow do I do that as I cannot use the Custom_axis id's as they change once the first custom axis (Custom3) is deleted. Any ideas?

Thanks,

hugh...

Posted: Thu Mar 27, 2008 9:48 am
by narcis
Hi hugh,

You can do it downwards, for example:

Code: Select all

Private Sub Command1_Click()
    TChart1.Axis.RemoveCustom 3
    TChart1.Axis.RemoveCustom 2
End Sub