G
Gunnar Johansson
Hi,
I export chartobjects (embedded charts in a worksheet) temporary to be able
to load them into a userform. I find the quality of the loaded picture to be
to poor. Are there any switches or something I can use with the export
filter to specify the size etc?
The loaded picture should become larger than the chartobject. I have tried
to boost the size of the chartobject to get a larger gif, but with no
success.
....
Sub ExpChartLoadImg()
Set CurrentChart = Sheet1.ChartObjects(ChartNum).Chart
' 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
/Regards
I export chartobjects (embedded charts in a worksheet) temporary to be able
to load them into a userform. I find the quality of the loaded picture to be
to poor. Are there any switches or something I can use with the export
filter to specify the size etc?
The loaded picture should become larger than the chartobject. I have tried
to boost the size of the chartobject to get a larger gif, but with no
success.
....
Sub ExpChartLoadImg()
Set CurrentChart = Sheet1.ChartObjects(ChartNum).Chart
' 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
/Regards