Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 148
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 148
Default 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
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
Method Add of object Validation Failed - please help Shokie New Users to Excel 1 July 10th 09 01:34 PM
Method Add of object Validation Failed - please help Shokie Excel Worksheet Functions 1 July 10th 09 01:33 PM
Method 'Add' of object 'CommandBarControls' failed LAF Excel Discussion (Misc queries) 0 September 12th 05 02:02 PM
Method Rows of Object Global Failed Lynn Taylor Excel Programming 4 September 7th 04 11:35 AM
Method ~ of Object ~ Failed. Joan Excel Programming 5 August 26th 03 08:13 PM


All times are GMT +1. The time now is 05:22 AM.

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

About Us

"It's about Microsoft Excel"