Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following method fails on 2003 but runs ok on 2000.
activechart.export filename:=myfilename, filtername:="GIF" I get a runtime 1004 error: method export of object chart failed thanks, |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Art,
If you are not on an English system, as Peter T pointed out recently, "GIF" may fail. A workaround is Dim MyFileName As String MyFileName = "C:\GifTest.gif" 'Make sure the filename has the extension ActiveChart.Export Filename:=MyFileName , filtername:="" Also, the Interactive argument seems to have no effect. This works in XL2000/2002, not sure about 2003. NickHK "Art Parra" wrote in message ... The following method fails on 2003 but runs ok on 2000. activechart.export filename:=myfilename, filtername:="GIF" I get a runtime 1004 error: method export of object chart failed thanks, |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or just leave off Filter, which is optional and defaults to GIF.
- Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions http://PeltierTech.com _______ "NickHK" wrote in message ... Art, If you are not on an English system, as Peter T pointed out recently, "GIF" may fail. A workaround is Dim MyFileName As String MyFileName = "C:\GifTest.gif" 'Make sure the filename has the extension ActiveChart.Export Filename:=MyFileName , filtername:="" Also, the Interactive argument seems to have no effect. This works in XL2000/2002, not sure about 2003. NickHK "Art Parra" wrote in message ... The following method fails on 2003 but runs ok on 2000. activechart.export filename:=myfilename, filtername:="GIF" I get a runtime 1004 error: method export of object chart failed thanks, |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just to add, the filter appears to default to that of the extension, eg
..gif, .jpg, ,jpeg, .tiff. Though for some reason I can't seem to save as .bmp Regards, Peter T "Jon Peltier" wrote in message ... Or just leave off Filter, which is optional and defaults to GIF. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions http://PeltierTech.com _______ "NickHK" wrote in message ... Art, If you are not on an English system, as Peter T pointed out recently, "GIF" may fail. A workaround is Dim MyFileName As String MyFileName = "C:\GifTest.gif" 'Make sure the filename has the extension ActiveChart.Export Filename:=MyFileName , filtername:="" Also, the Interactive argument seems to have no effect. This works in XL2000/2002, not sure about 2003. NickHK "Art Parra" wrote in message ... The following method fails on 2003 but runs ok on 2000. activechart.export filename:=myfilename, filtername:="GIF" I get a runtime 1004 error: method export of object chart failed thanks, |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Peter -
You're right. I must have made up that "GIF" as default filter thing. Apparently the filter name is only needed if the extension is not recognized. I couldn't save BMP or TIFF, but when I installed 2007 along with 2003 on another machine, neither Excel could export a chart. Removing 07, deleting all the image filters, and reinstalling 03 fixed it. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions http://PeltierTech.com _______ "Peter T" <peter_t@discussions wrote in message ... Just to add, the filter appears to default to that of the extension, eg .gif, .jpg, ,jpeg, .tiff. Though for some reason I can't seem to save as .bmp Regards, Peter T "Jon Peltier" wrote in message ... Or just leave off Filter, which is optional and defaults to GIF. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions http://PeltierTech.com _______ "NickHK" wrote in message ... Art, If you are not on an English system, as Peter T pointed out recently, "GIF" may fail. A workaround is Dim MyFileName As String MyFileName = "C:\GifTest.gif" 'Make sure the filename has the extension ActiveChart.Export Filename:=MyFileName , filtername:="" Also, the Interactive argument seems to have no effect. This works in XL2000/2002, not sure about 2003. NickHK "Art Parra" wrote in message ... The following method fails on 2003 but runs ok on 2000. activechart.export filename:=myfilename, filtername:="GIF" I get a runtime 1004 error: method export of object chart failed thanks, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time error '1004'; Method 'Export' of object'_Chart' failed | Excel Programming | |||
ASP & EXCEL2003 - RUN-TIME ERROR 1004 in Export method | Excel Programming | |||
excel chart export error runtime 1004 | Charts and Charting in Excel | |||
excel chart export error runtime 1004 | Excel Programming | |||
Chart appearance using "export" method | Charts and Charting in Excel |