Hi All,
I have used this VBA to export charts from my work sheet. I will expland on this to export all charts, however when the charts are exported it exports a picture of the same size as the chart. Which means when using it in a document the quality is not very good.
I have tried to get round this by increasing the size of the graph manually, but all the points stay the same size, and the font, so it'll mean I have to alter everything.
Is there any way of just increasing the export size/resolution?
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\Chart1.png", Filtername:="png"
Err_Chart:
If Err <> 0 Then
Debug.Print Err.Description
Err.Clear
End If
Chears
I have used this VBA to export charts from my work sheet. I will expland on this to export all charts, however when the charts are exported it exports a picture of the same size as the chart. Which means when using it in a document the quality is not very good.
I have tried to get round this by increasing the size of the graph manually, but all the points stay the same size, and the font, so it'll mean I have to alter everything.
Is there any way of just increasing the export size/resolution?
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\Chart1.png", Filtername:="png"
Err_Chart:
If Err <> 0 Then
Debug.Print Err.Description
Err.Clear
End If
Chears