LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Error 1004 when setting a Series Collection.Values as Array via VB

I am working in Excel 2000 with a Doughnut Chart.

I am trying to set-up the Chart with Series data hard coded into it,
rather than relying on a specified Range (because I want to part of the Graph
to be fixed and the other part variable via the Worksheet).

Extract from VB Code

With ActiveChart

.SeriesCollection(1).Values = Dial_Values

More CODE

End With

Where Dial_Values is the String Variable

={1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0 .15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0. 15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.1 5,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15 ,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15,1,0.15, 1,13.75}

This has 71 numbers in it.
Code works for any combination of 71 numbers or below (ie 60, 50 numbers
etc) and with any combination of Values (ie 1,0.15 or 1, 0.2 etc).

If try ABOVE 71 numbers get

Runtime Error 1004
Unable to set the Values property of the Series Class

Tried both using the String Variable and with the value of the String
directly written as Code.

However if I manually go into the Graph and add more than 71 numbers as an
Array into the Source Data it works ?

Same issue occurs if taking same approach with Xvalues.

Am I doing something wrong or is 72 some undefined internal limit ?

Obscure question I know but ... Any suggestions ?

Thanks
 
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
Setting name of series - run-time error 1004 Masol Excel Programming 0 May 13th 07 09:31 PM
Series Collection Results in Runtime Error 1004 Matthew Cunliffe Excel Programming 10 July 25th 06 11:38 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 10:05 AM.

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"