Hello Excellers,
I have a spreadsheet where I want to export the charts using VBA, which I've been able to do using this:
Dim oCht As Chart
ActiveSheet.ChartObjects("Chart 3").Select
Set oCht = ActiveChart
On Error GoTo Err_Chart
oCht.Export Filename:="C:\Documents and Settings\All Users\Desktop\PopularICON.png", Filtername:="png"
Err_Chart:
If Err <> 0 Then
Debug.Print Err.Description
Err.Clear
End If
However, due to the size of the chart, the export picture size is quite small and when enlarged to use in a document becomes blurry. I know that a way round it is to manually make the chart bigger but then I have to change all the font sizes and sizes of the points etc, which I don't want to do because there are quite a few charts.
Is there something I can add to the macro to export a chart as a larger picture?
Possiblely stop screen updating and then resize the pictures, export, the resize them back to the original size, and enable screen updating?
I have a spreadsheet where I want to export the charts using VBA, which I've been able to do using this:
Dim oCht As Chart
ActiveSheet.ChartObjects("Chart 3").Select
Set oCht = ActiveChart
On Error GoTo Err_Chart
oCht.Export Filename:="C:\Documents and Settings\All Users\Desktop\PopularICON.png", Filtername:="png"
Err_Chart:
If Err <> 0 Then
Debug.Print Err.Description
Err.Clear
End If
However, due to the size of the chart, the export picture size is quite small and when enlarged to use in a document becomes blurry. I know that a way round it is to manually make the chart bigger but then I have to change all the font sizes and sizes of the points etc, which I don't want to do because there are quite a few charts.
Is there something I can add to the macro to export a chart as a larger picture?
Possiblely stop screen updating and then resize the pictures, export, the resize them back to the original size, and enable screen updating?