Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ola Ola is offline
external usenet poster
 
Posts: 1
Default Using chartspace in a user form

Is there anyone who can tell me how to use chartspace in a user form? I
want to use data from an array, which is loaded into memory.

/Ola Eriksson


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Using chartspace in a user form

If you want to show an Excel chart in a userform - there are some
workarounds.
Please see these examples by John Walkenbach and Stephen Bullen:

http://www.j-walk.com/ss/excel/tips/tip66.htm
http://www.bmsltd.co.uk/DLCount/DLCo...stePicture.zip

HTH
/Ulrik

"Ola " wrote in message
...
Is there anyone who can tell me how to use chartspace in a user form? I
want to use data from an array, which is loaded into memory.

/Ola Eriksson


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using chartspace in a user form

If I use the Picture-method, where do I create the picture when I donī
have any data in a spread sheet? The data I want to use is uploade
from Access and calculated in VBA.

/Ol

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using chartspace in a user form

Look at the office Web components, there is a chart component.

I don't know if it will work with an array, however - you might have to use
the spreadsheet control to place the array first.

--
Regards,
Tom Ogilvy

"Ola " wrote in message
...
If I use the Picture-method, where do I create the picture when I donīt
have any data in a spread sheet? The data I want to use is uploaded
from Access and calculated in VBA.

/Ola


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Using chartspace in a user form

This macro adds a chart without needing data in the worksheet. You do
need a worksheet....

Sub ChartFromArrays()
Dim myChart As Chart
Set myChart = ActiveSheet.ChartObjects.Add(100, 100, 325, 250).Chart
With myChart
.SeriesCollection.NewSeries
.ChartType = xlXYScatterLines
With .SeriesCollection(1)
.Name = "The Series"
.Values = Array(1, 3, 5, 7, 9)
.XValues = Array(1.5, 2.5, 3.5, 4.5, 5.5)
End With
End With
End Sub

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

Ola < wrote:

If I use the Picture-method, where do I create the picture when I donīt
have any data in a spread sheet? The data I want to use is uploaded
from Access and calculated in VBA.

/Ola


---
Message posted from http://www.ExcelForum.com/




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using chartspace in a user form

Thank you, Jon!

I look into the code and get back if I run into any problems.

/Ola Eriksso

--
Message posted from http://www.ExcelForum.com

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
How do I fill a cell in a user form from a selection on same form? Terry Tipsy Excel Discussion (Misc queries) 4 June 11th 07 02:59 PM
Multiple charts in ChartSpace; problems with double Categories hstaaks Charts and Charting in Excel 0 May 4th 05 02:46 PM
Multiple charts in ChartSpace; problems with double Categories hstaaks Charts and Charting in Excel 2 May 3rd 05 01:23 AM
Multiple charts in ChartSpace; problems with double Categories hstaaks Charts and Charting in Excel 0 April 29th 05 12:06 PM
I am looking to see if anybody has an equivalant user form to Outlooks CONTACT form BruceJ[_2_] Excel Programming 2 October 15th 03 05:28 PM


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