I was wondering how to export graphs from excel instead of using Snipping tool ... I found some code there and there. But I remain stuck with the following error :
"Run-Time error '424'": Object required
Any thoughts where to start by ?
Sub SaveAllCharts()
Dim SaveToDirectory As String
Dim myChart As Chart
SaveToDirectory = ActiveWorkbook.Path & "\Images\"
MsgBox ("Saved Directory:" + SaveToDirectory)
For Each myChart In ActiveWorkbok.Charts MsgBox (OK) myChart.Export SaveToDirectory & myChart.Name & ".png", PNG Next
End Sub