B
Barb Reinhardt
I have the following snippet of code to save a chart as a GIF. What am I
missing?
For Each WS In aWB.Worksheets
For Each ChtObj In WS.ChartObjects
If ChtObj.Name = "myName.gif" Then
fname = aWB.Path & "\myFileName.gif"
WS.Select
ChtObj.Select
ChtObj.Export Filename:=fname, FilterName:="GIF"
End If
Next ChtObj
Next WS
Thanks,
Barb Reinhardt
missing?
For Each WS In aWB.Worksheets
For Each ChtObj In WS.ChartObjects
If ChtObj.Name = "myName.gif" Then
fname = aWB.Path & "\myFileName.gif"
WS.Select
ChtObj.Select
ChtObj.Export Filename:=fname, FilterName:="GIF"
End If
Next ChtObj
Next WS
Thanks,
Barb Reinhardt