Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Export a chart in a GIF file. Run-time error '1004': Application-defined or object-defined error;
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").ChartObjec ts(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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
run time error 1004 : application defined or object defined error | Excel Programming | |||
Run Time Error 1004: Application-Defined or Object-Defined Error | Excel Programming | |||
Run-time Error 1004: Application-defined or Object-defined Error | Excel Programming | |||
Macro Run-time Error 1004 Application Defined or Object Defined Error | Excel Programming |