Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Chart in Userform Option 2

I am also looking at the chartspace option for a chart in a userform



However, I can not work out how to set the name of the worksheet to extract
the data from. I have tried the following from the work Mike did



From: rci )
Subject: Office Chart Component and Excel

View: Complete Thread (8 articles)

Original Format

Newsgroups: microsoft.public.excel.programming
Date: 2003-12-04 11:00:11 PST





Dim oChart Dim Spreadsheet1 As OWC10.Spreadsheet

Set Spreadsheet1 = CreateObject("OWC10.Spreadsheet")

Spreadsheet1.Range("A1", "B650") = Sheet5.Range("A1", "B650").value





And the Example John Walkenbach did but I can only make that work when the
sheet is active.



I have gone through the MSDN area but just got totally confused. Any
pointer on how to set the worksheetname would be appreciated. As I don't
understand the spreadsheet1 stuff they are talking about


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Chart in Userform Option 2

David -

The Walkenbach approach from your other post is much easier.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

David Adamson wrote:

I am also looking at the chartspace option for a chart in a userform



However, I can not work out how to set the name of the worksheet to extract
the data from. I have tried the following from the work Mike did



From: rci )
Subject: Office Chart Component and Excel

View: Complete Thread (8 articles)

Original Format

Newsgroups: microsoft.public.excel.programming
Date: 2003-12-04 11:00:11 PST





Dim oChart Dim Spreadsheet1 As OWC10.Spreadsheet

Set Spreadsheet1 = CreateObject("OWC10.Spreadsheet")

Spreadsheet1.Range("A1", "B650") = Sheet5.Range("A1", "B650").value





And the Example John Walkenbach did but I can only make that work when the
sheet is active.



I have gone through the MSDN area but just got totally confused. Any
pointer on how to set the worksheetname would be appreciated. As I don't
understand the spreadsheet1 stuff they are talking about



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
Display a Chart in a userform Lisa Charts and Charting in Excel 0 February 12th 09 02:50 PM
Chart in a userform Option 1 David Adamson[_3_] Excel Programming 2 July 6th 04 03:23 AM
Chart on Userform pgjoshi[_4_] Excel Programming 1 April 17th 04 03:29 PM
Automate the Userform option Petra Excel Programming 2 November 5th 03 11:30 PM
Chart into Userform Problem David Adamson[_2_] Excel Programming 7 August 3rd 03 03:30 AM


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