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 Can not change Category Names for Axis


Hello everyone,

Here is my problem...

I have a chart with a secondary category axis, and I need to chang
names on it. The code I have used to work fine and now it give an erro
"Unable to set the CategoryNames property for Axis class".

And I think it is because CategoryNames is empty sometimes, but I a
not sure, because everytime I add myAxis object to Watch list Exce
crashes (I mean it gives me "Program preformed an unperforme
operation..." blabla "Sorry for the inconvinience").

here is my code

Set myChart = Sheets.Application.ActiveSheet.ChartObjects("Char
1").Chart
With myChart

Set myAxis = .Axes(1, xlSecondary)
With myAxis
.CategoryNames = myCatNames 'myCatNames is an array
End With
End With


myCatNames - is an array which gets values from a specific range. An
this one works fine, because I am able to add to watch list and se
what is going on with it.

Thank you all for you feedback if any.
Ivan


P.S. Maybe when .CategoryNames is empty and I am trying to assign a
array to it then it raises error. If that's the case how to ReDim a
object property (.CategoryNames) ??

--
Intellihom
-----------------------------------------------------------------------
Intellihome's Profile: http://www.msusenet.com/member.php?userid=147
View this thread: http://www.msusenet.com/t-187045634

 
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
How do i change category names in a drop down list in excel? ikeym Excel Discussion (Misc queries) 1 February 3rd 10 12:07 AM
Change Value axis to category axis Ronnie Charts and Charting in Excel 1 May 1st 09 11:14 PM
renaming of the values on the x-axis (i.e. category names) wildetudor Charts and Charting in Excel 2 January 13th 09 11:57 AM
How do I change where category x axis crosses the 2nd y axis? epu Charts and Charting in Excel 7 October 28th 08 02:31 PM
Change y-axis to category in a column chart Ben Hill Charts and Charting in Excel 3 July 11th 07 01:45 AM


All times are GMT +1. The time now is 02:10 PM.

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"