Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change Value axis to category axis | Charts and Charting in Excel | |||
renaming of the values on the x-axis (i.e. category names) | Charts and Charting in Excel | |||
How do I change where category x axis crosses the 2nd y axis? | Charts and Charting in Excel | |||
Change y-axis to category in a column chart | Charts and Charting in Excel | |||
Can not change Category Names for Axis | Excel Programming |