charts on a User Form?

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
378
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
i am interested on draw charts on a USer form, specially in a Multipagecontrol, how to do?

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I never click on links.
So are you saying this link says if can be done.
Then if that's true how does it say to do it?

Now it is true you can put a image on a userform but as far as I know not a image of a Chart that would keep being updated.

But if it's possible I will learn something here to as I follow this thread
 
Last edited:
Upvote 0
yes with a image i can do the graphs.....

but i need detect the click on a Zone of the Graph..

with a image how to?

Thanks
 
Upvote 0
yes with a image i can do the graphs.....

but i need detect the click on a Zone of the Graph..

with a image how to?

Thanks

What do mean by zone on the Graph ? are you refering to chart data points , series etc ? and what you do you expect to happen when clicking ?
 
Upvote 0
i think in a Pie Chart.

Apples = 36%
Oranges = 18%
Bannanas = 46%

if user click on Bannanas area i want detect is a Bannana area and display the Detail of the 46%

i am explained? thanks
 
Upvote 0
If you add the data labels with their details to the pie chart before copying the chart then the corresponding details like percentage , serie name etc will show on the userform chart image and you wont need to click
 
Last edited:
Upvote 0
I'm still monitoring this thread.
So can you provide the code needed to load a Chart into a Userform Image control.

Lets say the Chart is named Grades
 
Upvote 0
Select Case chartIndex
Case 1
Set NewSheet = wbk.Sheets("Grades")

Set myChart = NewSheet.ChartObjects("Budget")
Dim imageName As String
imageName = Application.DefaultFilePath & Application.PathSeparator & "TempChart.gif"
Set myChartChart = myChart.Chart
myChartChart.Export FileName:=imageName
FArchForm.Image1.Picture = LoadPicture(imageName)

Set myChart = NewSheet.ChartObjects("Actual")
imageName = Application.DefaultFilePath & Application.PathSeparator & "TempChart2.gif"
Set myChartChart = myChart.Chart
myChartChart.Export FileName:=imageName
FArchForm.Image2.Picture = LoadPicture(imageName)


Case 2
Set ChartData = ActiveSheet.Range("D2:D20")
ChartName = ActiveSheet.Range("D1")
Case 3
Set ChartData = ActiveSheet.Range("E2:E20")
ChartName = ActiveSheet.Range("E1")
End Select
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top