I'm trying to use VB to export an Excel chart (not an embedded chart) as a .gif file. I get a "type mismatch" error when just trying to reference the chart, before the actual export step. A few samples of the code I've tried follow:
[tt] Sheets(SheetName).Export FileName:=Fname, FilterName:="GIF"[/tt]
[tt] Charts(SheetName).Export FileName:=Fname, FilterName:="GIF"[/tt]
[tt] Sheets(SheetName).Activate
ActiveSheet.Export FileName:=Fname, FilterName:="GIF"[/tt]
Can anyone help me? Please keep any responses simple, as I am fairly new to VB coding. Thanks a lot... :->
[tt] Sheets(SheetName).Export FileName:=Fname, FilterName:="GIF"[/tt]
[tt] Charts(SheetName).Export FileName:=Fname, FilterName:="GIF"[/tt]
[tt] Sheets(SheetName).Activate
ActiveSheet.Export FileName:=Fname, FilterName:="GIF"[/tt]
Can anyone help me? Please keep any responses simple, as I am fairly new to VB coding. Thanks a lot... :->