Updating Axis tickmark/ticklabel spacing (1 Viewer)

benti

New member
Local time
Today, 03:37
Joined
Aug 11, 2004
Messages
8
I'm generating charts in a form from VBA, and have two problems connected to this:

1. I'm using the following code to set the spacing for tickmark/ticklabel

Code:
Forms(frmxxx).ctlxxx.object.Axes(xlcategory).TickMarkSpacing=5
Forms(frmxxx).ctlxxx.object.Axes(xlcategory).TickLabelSpacing=5
This is working fine-But never the first time I'm running my code. I allways need to run my code twice to get it to work.

Have allready tried
Code:
Forms(frmxxx).ctlxxx.object.Reload
2.
When the input on x-axis is of date-formate, it has been impossible for me to set the tickmark/ticklabel spacing at all.
 

pottera

Registered User.
Local time
Today, 11:37
Joined
Sep 3, 2002
Messages
236
I don't know a thing about charts, but where have you put the code? (eg Form_Open event?)
 

benti

New member
Local time
Today, 03:37
Joined
Aug 11, 2004
Messages
8
The code is put under a click-event on a seperate form
 

Users who are viewing this thread

Top Bottom