Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Scott
 
Posts: n/a
Default save excel chart as picture

Can you save a chart as a picture? I know that I can copy the chart by
"shift", "edit" "copy", and then paste it in another document, but can I save
it as a picture.
  #2   Report Post  
Andy Pope
 
Posts: n/a
Default

Hi,

You can make use of the charts .Export method.

ActiveChart.Export _
FileName:="MyChart.gif", FilterName:="GIF"

This may interest you if you want to export to image files regularly
http://www.andypope.info/vba/gex.htm

Cheers
Andy

Scott wrote:
Can you save a chart as a picture? I know that I can copy the chart by
"shift", "edit" "copy", and then paste it in another document, but can I save
it as a picture.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Scott
 
Posts: n/a
Default

Thanks. How do I use "Active Chart Export" from within Excel. In regards to
your program, how do I install it for use. I ran it and it stated that it
wasn't "signed" and therefore I needed to modify security.

"Andy Pope" wrote:

Hi,

You can make use of the charts .Export method.

ActiveChart.Export _
FileName:="MyChart.gif", FilterName:="GIF"

This may interest you if you want to export to image files regularly
http://www.andypope.info/vba/gex.htm

Cheers
Andy

Scott wrote:
Can you save a chart as a picture? I know that I can copy the chart by
"shift", "edit" "copy", and then paste it in another document, but can I save
it as a picture.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

  #4   Report Post  
Scott
 
Posts: n/a
Default

Got it working.. Great program. Still not sure how the "other" export
feature works. One question... does your add-in, convert the chart shown on
teh screen or the proper chart - I'm a victim of the truncated lap top y-axis
labelling. I can always export teh pics on my desktp, but I use mt lap top
most of the time... Thanks again.

"Scott" wrote:

Can you save a chart as a picture? I know that I can copy the chart by
"shift", "edit" "copy", and then paste it in another document, but can I save
it as a picture.

  #5   Report Post  
Andy Pope
 
Posts: n/a
Default

Hi Scott,

Glad you got it working. If you modified your security level from High I
hope you chose Medium and not the Low option.

The add-in or exporting come to that will probably not cure the y axis
tuncation problem.

To use the Activechart.export you need to either place it in a routine
(macro) or you could execute it from the immediate window in the vbe.

The simplest way to create the routine would be to start the record
macro. Store the macro in your personal.xls so you can use it whenever.
Give the macro a name like ExportMyChart. Stop the recorder. This should
then give you an empty routine. Click menu Tools Macro Macros.
Select the ExportMyChart macro and press edit. You can now enter the
following code so you end up with a macro like this.

Sub ExportMyChart()
'
' ExportMyChart Macro
' Macro recorded 26/08/2005 by Andy Pope
'
Dim strFile As String

If Not ActiveChart Is Nothing Then
strFile = InputBox("Enter name for chart image file", _
"Export Chart", _
ActiveChart.Parent.Name)
If strFile < "" Then
ActiveChart.Export ActiveWorkbook.Path & _
Application.PathSeparator & _
strFile, "GIF"
End If
Else
MsgBox "Please select chart object", vbExclamation
End If
End Sub

Cheers
Andy

Scott wrote:
Got it working.. Great program. Still not sure how the "other" export
feature works. One question... does your add-in, convert the chart shown on
teh screen or the proper chart - I'm a victim of the truncated lap top y-axis
labelling. I can always export teh pics on my desktp, but I use mt lap top
most of the time... Thanks again.

"Scott" wrote:


Can you save a chart as a picture? I know that I can copy the chart by
"shift", "edit" "copy", and then paste it in another document, but can I save
it as a picture.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
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
Fan charts Dean Charts and Charting in Excel 7 May 30th 05 11:51 AM
Save excel chart Stevie D Charts and Charting in Excel 9 March 3rd 05 01:18 PM
Why do I get a warning when I try to save an Excel 2003 workbook. David Williams Excel Discussion (Misc queries) 0 January 11th 05 07:59 PM
Save & Save As features in file menu of Excel Blue Excel Discussion (Misc queries) 9 December 27th 04 08:49 PM
Excel crashing on save as Roundy Excel Discussion (Misc queries) 1 December 10th 04 10:45 PM


All times are GMT +1. The time now is 06:29 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"