C
cschiffers
Hi All,
I am new programing EXCEL makros and I am trying to export an EXCEL
chart as a GIF file. I am using the following code to do it:
Set CurrentChartX =
Sheets("1.Upright&TrackRodCoordinates").ChartObjects(1).Chart
CurrentChartX.Parent.Width = 306
CurrentChartX.Parent.Height = 180
Fname = ThisWorkbook.Path & Application.PathSeparator & "temp.gif"
CurrentChartX.Export Filename:=Fname, FilterName:="GIF"
I obtain the following error message in the last line:
Run-time error '1004': Application-defined or object-defined error;
I have tried the same code in other computers without problems.The
value of the pathname stored in Fname has been checked and seems
correct. I would appreciate any help...
Thank you,
Catherine
I am new programing EXCEL makros and I am trying to export an EXCEL
chart as a GIF file. I am using the following code to do it:
Set CurrentChartX =
Sheets("1.Upright&TrackRodCoordinates").ChartObjects(1).Chart
CurrentChartX.Parent.Width = 306
CurrentChartX.Parent.Height = 180
Fname = ThisWorkbook.Path & Application.PathSeparator & "temp.gif"
CurrentChartX.Export Filename:=Fname, FilterName:="GIF"
I obtain the following error message in the last line:
Run-time error '1004': Application-defined or object-defined error;
I have tried the same code in other computers without problems.The
value of the pathname stored in Fname has been checked and seems
correct. I would appreciate any help...
Thank you,
Catherine