Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > Using a name in a graph series formula


Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2001, 10:03 AM
miktek
Guest
 
Posts: n/a
Question Using a name in a graph series formula


Running into brick wall with using a name in a series formula. this comes right out of p487 of the Walkenbach book "Excel 2000 programming with VBA" just in case anyone's seen that.

Book says"references on series formulas are always absolute." Then later on p 492, it describes how to use names in series formulas. This is the crux of everything I want to do in that I am collecting periodic data and then want to update the chart by using vba to change the range reference in the series formula.

I get the compile error "invalid char" for the $ everytime. Heres my snippet of code:

Dim MySeries1 As Series
myseries1.Formula = SERIES(Sheet4!$B$3:$B$20,1))

Can't for the life of me figure out whats wrong. Taking it right out of the book.
Thanks for any help.




Reply With Quote
  #2  
Old 06-30-2003, 02:13 PM
-YX- -YX- is offline
Freshman
 
Join Date: Apr 2003
Location: Canada
Posts: 42
Default

Ya well ear that my friend... I used the macro recorder to get some working source code... but Excel can not produce a working code of it (changing the seriesCollection ranges) ... like it can not write VB that do just that and I can not replay the macro recorded... it will make error... and you know what???? I was able to make one work... it works for one graph in my workbook but not for the second???? I am a experience programmer and I can tell you that this stuff is really bug from the root (Microsoft)...

YX
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->