LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
rci rci is offline
external usenet poster
 
Posts: 40
Default Office Chart Component and Excel

Hi all...
not new to programming, but I'm rather old school... back when line numbers
were in vogue ;-)

Anyway, this newfangled object stuff sometimes throws me.

So here I am... trying to make the Microsoft Office Chart Component work
from within an Excel Userform. Don't try to talk me out of it :-)

Anywhoo... I am having success, but am at an impasse...

I need to set the DataSource for the chartspace to a spreadsheet object.
Some Microsoft example code says I should be able to do it, but as yet, I am
always getting a "type mismatch error" whenever I come to this line:

Set ChartSpace1.DataSource = Spreadsheet1

or

Set ChartSpace1.DataSource = ActiveSheet

or
...

or
...

or

... any of the numerous variations I've tried to point to the
spreadsheet I am using (in the same project as the userform).

Apparently, the object that Chartspace1 needs as a datasource is not the
same type of object as the excel spreadsheet... or perhaps I'm not doing it
right syntactically.

I'm Using Excel 2002...

If anyone could tell me how to set the datasource to my active sheet, I'll
buy you a beer.

All the best,

Mike


 
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
Office Project vs. Office Web Component ITmidget Excel Worksheet Functions 0 February 22nd 10 04:21 PM
Office web component . Ermias Excel Worksheet Functions 0 May 20th 08 11:40 PM
office web component error james Excel Discussion (Misc queries) 0 October 6th 05 02:25 PM
Preventing NULL showing as 0 on a pivot chart using Office Web Component. lk Charts and Charting in Excel 1 September 13th 05 01:00 PM
Office XP chart component Ryan Bannan[_2_] Excel Programming 0 October 15th 03 04:31 PM


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