Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Chart Export Issues

This is a problem I've dealt with for some time. I try to use this
code to export a chart as a GIF file and from the postings I've read,
there have been no problems. However, everytime I try to run this it
gives me a Run Time error '1004' and I cannot figure out why. The
exact code as is below.

Fname = ThisWorkbook.Path & Application.PathSeparator & "Chart.gif"
Worksheets("Charts").ChartObjects(1).chart.Export Filename:=Fname,
FilterName:="GIF"

The two things I notice are that VB automatically puts a lowercase C on
chart and a lowercase N on Filename - I don't know what this indicates.

The Export function is in my object browser so it must be loaded in -
but it does not work.

What am I missing?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Chart Export Issues

What's the error text (more useful than the number)

--
Tim Williams
Palo Alto, CA


wrote in message ups.com...
This is a problem I've dealt with for some time. I try to use this
code to export a chart as a GIF file and from the postings I've read,
there have been no problems. However, everytime I try to run this it
gives me a Run Time error '1004' and I cannot figure out why. The
exact code as is below.

Fname = ThisWorkbook.Path & Application.PathSeparator & "Chart.gif"
Worksheets("Charts").ChartObjects(1).chart.Export Filename:=Fname,
FilterName:="GIF"

The two things I notice are that VB automatically puts a lowercase C on
chart and a lowercase N on Filename - I don't know what this indicates.

The Export function is in my object browser so it must be loaded in -
but it does not work.

What am I missing?



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
How do i export a pivot chart as a static chart object? James Charts and Charting in Excel 2 November 11th 08 10:05 PM
Pie Chart issues Aziz Ahmedabadwala Charts and Charting in Excel 1 May 27th 06 05:04 PM
Pivot Chart issues spezialize Charts and Charting in Excel 1 November 23rd 05 05:39 PM
Export/Import + Copy issues John Keith[_2_] Excel Programming 0 October 21st 05 03:25 PM
export chart - what controls exported chart width Art Parra Excel Programming 2 December 6th 04 04:35 AM


All times are GMT +1. The time now is 07:55 AM.

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

About Us

"It's about Microsoft Excel"