Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
method of axes of object failed
I am trying to syncronize two charts, but I am getting a "Run-time error
1004, method of axes of object failed" error. I am getting this right out of a book to help me with vba, but this one isn't working. This is what I have: Sub SynchronizeCharts() Dim myWest As Chart Dim myEast As Chart Set myWest = ActiveSheet.ChartObjects("West").Chart Set myEast = ActiveSheet.ChartObjects("East").Chart myWest.Axes(x1value).MaximumScaleIsAuto = True The line above is where I am getting the error. Can anyone tell me why? TIA |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
method of axes of object failed
You have
x1value but the constant is xlvalue the difference is xL vice x(one) -- Regards, Tom Ogilvy "Papa Jonah" wrote in message ... I am trying to syncronize two charts, but I am getting a "Run-time error 1004, method of axes of object failed" error. I am getting this right out of a book to help me with vba, but this one isn't working. This is what I have: Sub SynchronizeCharts() Dim myWest As Chart Dim myEast As Chart Set myWest = ActiveSheet.ChartObjects("West").Chart Set myEast = ActiveSheet.ChartObjects("East").Chart myWest.Axes(x1value).MaximumScaleIsAuto = True The line above is where I am getting the error. Can anyone tell me why? TIA |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
method of axes of object failed
thank you very much!
"Tom Ogilvy" wrote: You have x1value but the constant is xlvalue the difference is xL vice x(one) -- Regards, Tom Ogilvy "Papa Jonah" wrote in message ... I am trying to syncronize two charts, but I am getting a "Run-time error 1004, method of axes of object failed" error. I am getting this right out of a book to help me with vba, but this one isn't working. This is what I have: Sub SynchronizeCharts() Dim myWest As Chart Dim myEast As Chart Set myWest = ActiveSheet.ChartObjects("West").Chart Set myEast = ActiveSheet.ChartObjects("East").Chart myWest.Axes(x1value).MaximumScaleIsAuto = True The line above is where I am getting the error. Can anyone tell me why? TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Method Add of object Validation Failed - please help | New Users to Excel | |||
Method Add of object Validation Failed - please help | Excel Worksheet Functions | |||
Method 'Add' of object 'CommandBarControls' failed | Excel Discussion (Misc queries) | |||
Method Rows of Object Global Failed | Excel Programming | |||
Method ~ of Object ~ Failed. | Excel Programming |