Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Chart into Userform Problem
Can some kind sole please help me here.
I am display 13 charts one at a time into a userform via a drop down box titled: ChartType I have adapted the coding from John Walkenbach's site http://j-walk.com/ss/excel/tips/tip66.htm But the problem I get is that it displays the wrong chart. It works fine for Chart 1 but after that it just seams to go loopy when I try and load in another chart Any suggestions would be greatly appreciated. -------------------------------------------- Dim ChartNo As Integer Private Sub GetChart_Click() ChartNo = 0 CheckValue = Charts.ChartType.ListIndex + 1 ChartNo = CheckValue UpdateChart End Sub Private Sub UpdateChart() Set CurrentChart = Sheets("Charts").ChartObjects(ChartNo).Chart CurrentChart.Parent.Width = 420 CurrentChart.Parent.Height = 190 ' Save chart as GIF Fname = ThisWorkbook.Path & Application.PathSeparator & "temp.gif" CurrentChart.Export Filename:=Fname, FilterName:="GIF" ' Show the chart Image1.Picture = LoadPicture(Fname) End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Userform Import problem | Excel Discussion (Misc queries) | |||
Userform problem? | Excel Discussion (Misc queries) | |||
userform problem | Excel Discussion (Misc queries) | |||
Userform problem (Listindex) | Excel Discussion (Misc queries) | |||
UserForm Recall Problem | Excel Discussion (Misc queries) |