home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Excel
- BorderStyle = 3 'Fixed Double
- Caption = "OLE Automation Demo"
- ClientHeight = 1185
- ClientLeft = 2085
- ClientTop = 2445
- ClientWidth = 3240
- Height = 1590
- Left = 2025
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1185
- ScaleWidth = 3240
- Top = 2100
- Width = 3360
- Begin CommandButton cmdClose
- Caption = "Close Excel"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 960
- TabIndex = 1
- Top = 600
- Width = 1200
- End
- Begin CommandButton cmsStart
- Caption = "Start Excel"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 960
- TabIndex = 0
- Top = 120
- Width = 1200
- End
- Sub cmdClose_Click ()
- 'XL.Close
- Set XL = Nothing
- Set appXL = Nothing
- Set zot = Nothing
- Set zot1 = Nothing
- Set zot2 = Nothing
- Set zot3 = Nothing
- Set zot4 = Nothing
- Set zot5 = Nothing
- Set ws = Nothing
- Set sheet = Nothing
- Set graphic = Nothing
- End Sub
- Sub cmsStart_Click ()
- Set XL = CreateObject("Excel.Application.5")
- Set appXL = XL.Application
- appXL.WindowState = 3
- appXL.WorkBooks.Add
- End Sub
-