LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default set Excel.Axis properties

I am trying to manipulate a chart's secondary axis group to be as follows:

In excel there is a checkbox under "Chart Options" for the "Axes" tab. I
want to programatically check the "Category (X) axis" and set the Category
Type to "Time-scale".

I have figured out how to obtain an instance of the secondary Axis (show
below):

Excel.Axis axis = (Excel.Axis)oChart.Axes(Excel.XlAxisType.xlCategor y,

Excel.XlAxisGroup.xlSecondary);

I cannot figure out how to set that checkbox via this object and when I try
to set the Category type using the following code:

axis.CategoryType = Excel.XlCategoryType.xlTimeScale;

It actually sets the CategoryType to xlCategoryScale, not xlTimeScale
(weird). I would GREATLY appreciate any insight that you may have to offer.

Sincerely,

tdeve



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003: Mapping rows (x-axis) vs multiple columns (y-axis) Tom Excel Discussion (Misc queries) 1 May 29th 07 01:03 PM
can I make the vertical axis the category axis in Excel line graph power1 Charts and Charting in Excel 1 March 20th 06 08:45 PM
Properties transferring from excel cells to word file properties lubo Excel Programming 4 July 12th 05 11:24 AM
How to insert X axis scale values next to axis and X axis grid lin vp23larry Charts and Charting in Excel 2 June 23rd 05 03:45 PM
How do I make the Y axis in an excel chart the category axis? megnadoodle Charts and Charting in Excel 2 March 29th 05 09:27 AM


All times are GMT +1. The time now is 10:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"