{oapdf_gg}
Office software is closely linked to the PDF,the PDF is also must have to control!      Set home Page  Add to Favorites  
You are here:Home > OA application skills > EXCEL skills
EXCEL skills
Excel macro code using the chart saved as a GIF file
Finishing by: Date:2009-04-02 15:04:46 Popularity: Tags:xls2gif Guide

 2. To create macros

In the "Project" window, select the chart where the workbook, and then the implementation of the menu command "Insert> module", open the "Module 1" window, in the window, enter the following four lines of code, as shown in Figure 3.

Sub SaveChartAsGIF ()
Fname = ThisWorkbook.Path & "\" & ActiveChart.Name & ".gif"
ActiveChart.Export FileName:=Fname, FilterName:="GIF"
End Sub

 Figure 3

Code input is completed, do not forget save.  Save and close Visual Basic Editor.

there isArticle InformationsComment Information
Category column

Site Help | Site Map | Feedback |
OAPDF.COM Copyright 2009 V1.1