LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Andrew
 
Posts: n/a
Default Excel / VB is driving me nuts!!

Product: Excel-97 SR2

What I'm trying to achieve is within a VB script is
changing the text title of a Chart. In reading through
the on-line help file, it gives the following example:

With Worksheets(1).Charts("chart1").Axes(xlCategory)
.HasTitle = True
.AxisTitle.Caption = "1994"
End With

But when I cut-n-paste the example into my spreadsheet,
changing only the value for Worksheets and Charts to whats
appropriate to my spreadsheet (for example; Worksheets
("Sheet1").Charts("Chart 3")...) I get the following error
message:

- Andrew
Run-time error: 438

Object doesn't support property or method


I've checked, double-checked, quadtriple checked for
typing / syntax errors, but other than the changes
mentioned, it's exactly as in the help file! Unless the
help file example is wrong, I cannot find why am I getting
this error.
 
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 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I isolate my Excel server (automation) from other Excel instances? Joseph Geretz Excel Discussion (Misc queries) 5 July 19th 13 03:18 PM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM
VB Automation is Whacking out my Excel Environment Joseph Geretz Excel Discussion (Misc queries) 2 December 29th 04 03:49 PM


All times are GMT +1. The time now is 12:24 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"