Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is a code for vb6 programmers
--------------------------------- Dim xl, wbk Private Sub Command1_Click() Set ThisChart = wbk.sheets(1).ChartObjects(1).Chart fName = CurDir & "\LiveChart.GIF" ThisChart.Export FileName:=fName, FilterName:="gif" Picture1.Picture = LoadPicture(fName) End Sub Private Sub Form_Load() Set xl = CreateObject("Excel.application") Set wbk = xl.workbooks.open(CurDir & "\LiveChart.xlsx") End Sub Private Sub Form_Unload(Cancel As Integer) On Error Resume Next xl.displayalerts = False wbk.save wbk.Close Set xl = Nothing End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Embedding a pie chart from excel | Charts and Charting in Excel | |||
Embedding an annotation or a comment to a chart in Excel 2007 | Charts and Charting in Excel | |||
Embedding spreadsheet in a user form | Excel Discussion (Misc queries) | |||
Can I scan an existing paper form into excel | Excel Discussion (Misc queries) | |||
Embedding excel charts in my C# windows form | Charts and Charting in Excel |