Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Setting name of series - run-time error 1004

When I record macro in Excel 2003 and set name of series on a chart the
following code is saved:

ActiveChart.SeriesCollection(1).Name = "=Workbook1!R1C1"

When I do the same in Excel 2007, it generates:

ActiveChart.SeriesCollection(1).Name = "=Workbook1!$A$1"

Code from Excel 2003 does not work in Excel 2007 and vice versa - in both
cases I get run-time error 1004. How can I create code compatibile with both
versions of Excel?
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
error 1004 when setting pivottable.pagefields Amedee Van Gasse Excel Discussion (Misc queries) 0 September 24th 08 01:39 PM
Series Collection Results in Runtime Error 1004 Matthew Cunliffe Excel Programming 10 July 25th 06 11:38 PM
Runtime Error 1004 Unable to set the XValues property of series cl Rachel Excel Programming 2 April 26th 06 02:41 PM
Error 1004: Unable to set the XValues of the Series Class jonathanmiller Excel Programming 0 June 23rd 04 12:20 AM
EXCEL VB Macro Run Time Error 1004 - Setting ColorIndex Erwin[_2_] Excel Programming 4 April 14th 04 03:52 PM


All times are GMT +1. The time now is 07:24 PM.

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"