Hello Everyone!
I am writing a code to organise some charts. In the x-axis I have date and time in the format "DD.MM.YYYY hh:mm:ss", and because all the measurements change with time, I need the x-axis to the format on Column B (Figure on the left). Initially, the axis ticks are numbers (Figure in the middle), and to change them to the format I want, I have used so far the following line, that based on some other questions, may work:
With Plot_Pressure
.Axes(xlCategory, xlPrimary).CategoryType = xlCategoryScale
End With
However, after running that the axis tick does not change and if I include the line ".Axes(xlCategory).TickLabels.NumberFormat = "dd.mm.yyyy hh:mm:ss"" after, the result is even worst (Figure on the right).
Could someone please help me with it?
I would really appreciate it!
Thanks!!!
I am writing a code to organise some charts. In the x-axis I have date and time in the format "DD.MM.YYYY hh:mm:ss", and because all the measurements change with time, I need the x-axis to the format on Column B (Figure on the left). Initially, the axis ticks are numbers (Figure in the middle), and to change them to the format I want, I have used so far the following line, that based on some other questions, may work:
With Plot_Pressure
.Axes(xlCategory, xlPrimary).CategoryType = xlCategoryScale
End With
However, after running that the axis tick does not change and if I include the line ".Axes(xlCategory).TickLabels.NumberFormat = "dd.mm.yyyy hh:mm:ss"" after, the result is even worst (Figure on the right).
Could someone please help me with it?
I would really appreciate it!
Thanks!!!