Chart in a Userform

Joined
Apr 8, 2006
Messages
2
Reaction score
0
Hi!!

How can I embed a chart that is place in a new sheet in a Userform? I now how to do it if the chart is in an existing sheet,

Set CurrentChart = Sheets("Chart1").ChartObjects(1).Chart
CurrentChart.Parent.Width = Width
CurrentChart.Parent.Height = Height

fname = ThisWorkbook.Path & Application.PathSeparator & "temp.gif"
CurrentChart.Export FileName:=fname, FilterName:="GIF"

imgChart.Picture = LoadPicture(fname)


but this is not what I need... Can someone help me??

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top