Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default export chart method error - excel2003

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default export chart method error - excel2003

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default export chart method error - excel2003

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default export chart method error - excel2003

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default export chart method error - excel2003

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time error '1004'; Method 'Export' of object'_Chart' failed Father Guido[_5_] Excel Programming 3 November 25th 05 02:30 PM
ASP & EXCEL2003 - RUN-TIME ERROR 1004 in Export method Mau[_3_] Excel Programming 0 September 12th 05 09:23 AM
excel chart export error runtime 1004 Mau Charts and Charting in Excel 3 August 17th 05 11:35 AM
excel chart export error runtime 1004 Mau[_2_] Excel Programming 0 August 4th 05 09:53 PM
Chart appearance using "export" method Alex St-Pierre Charts and Charting in Excel 4 December 3rd 04 03:29 AM


All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"