Convert excel to gif

B

Bob Phillips

Get a screen capture program. There are plenty of free ones, do a Google
search.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
A

Andy Pope

Hi,

The chart has an export method you can use from VBA.

ActiveChart.Export "C:\temp\mychart.gif", "gif"

Cheers
Andy
 
G

Gord Dibben

Mani

Sub SaveAsGIF()
' Saves the active chart as a GIF file
' Prompts for a file name and directory
Dim FileName As Variant
If ActiveChart Is Nothing Then
MsgBox "Select a chart to export."
Else
FileName = Application.GetSaveAsFilename( _
InitialFileName:=ActiveChart.Name & ".gif", _
FileFilter:="GIF Files (*.gif), *.gif", _
Title:="Save chart as GIF file")
If FileName <> False Then ActiveChart.Export FileName, "GIF"
End If
End Sub

Gord Dibben Excel MVP
 
Top