LufiaMaxim
New Member
- Joined
- Jul 13, 2011
- Messages
- 16
Hi,
I'm wondering if there's anyway I can add my own ticklabels to an axis in the form of an Array or anyway possible, don't really care how. I found the Chart.SeriesCollection(1).XValues accepts an array for the xvalues, but that doesn't apply for the ticklabels.
While I'm at it, I'll pose another question to what I'm actually trying to do. I've made a graph with VBA and it's worked wonderfully so far. They say a picture is worth a thosuand words, so I'll just do that:
The reason I want custom ticklabels is because I want to have 12:00 AM be changed to Midnight and 12:00 PM be changed to Noon.
Currently, I use the NumberFormat Property to get the values you see on this chart as follows:
numberFormat = "MMM dd" & vbCr & "hh:mm AM/PM"
I've tried searching all over the web for a way to get a custom formatting to show Midnight and Noon, basically a conditional formatting for NumberFormat property, but it doesn't seem to exist, understandably so.
How can I achieve my goal of converting the times to Noon & Midnight? Is it really with custom ticklabels, if that's possible, and if so, how do I do it?
Any help will be greatly appreciated.
LufiaMaxim
I'm wondering if there's anyway I can add my own ticklabels to an axis in the form of an Array or anyway possible, don't really care how. I found the Chart.SeriesCollection(1).XValues accepts an array for the xvalues, but that doesn't apply for the ticklabels.
While I'm at it, I'll pose another question to what I'm actually trying to do. I've made a graph with VBA and it's worked wonderfully so far. They say a picture is worth a thosuand words, so I'll just do that:
The reason I want custom ticklabels is because I want to have 12:00 AM be changed to Midnight and 12:00 PM be changed to Noon.
Currently, I use the NumberFormat Property to get the values you see on this chart as follows:
numberFormat = "MMM dd" & vbCr & "hh:mm AM/PM"
I've tried searching all over the web for a way to get a custom formatting to show Midnight and Noon, basically a conditional formatting for NumberFormat property, but it doesn't seem to exist, understandably so.
How can I achieve my goal of converting the times to Noon & Midnight? Is it really with custom ticklabels, if that's possible, and if so, how do I do it?
Any help will be greatly appreciated.
LufiaMaxim