home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "StartOMB"
- ClientHeight = 2190
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2850
- Height = 2595
- Icon = STARTOMB.FRX:0000
- Left = 1035
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 2190
- ScaleWidth = 2850
- Top = 1140
- Width = 2970
- Sub Form_Load ()
- Me.Caption = "Launch:" + Chr$(160) + "Object Model Browser"
- Me.Left = -Me.Width
- End Sub
- Sub Form_Resize ()
- If Me.WindowState <> 1 Then
- Me.WindowState = 1
- Me.Refresh
- Main
- End If
- End Sub
- Sub Form_Unload (Cancel As Integer)
- On Error Resume Next
- If XLSheet Is Nothing Then 'We started Excel
- 'If no one else is using this Excel instance, close it
- Debug.Print XLAddin.Installed 'Error if workbook
- If Err Then
- XLAddin.RunAutoMacros 2 'xlAutoClose, workbook in XLAddin
- XLAddin.[Close] False
- If XLApp.Workbooks.Count = 0 Then XLApp.Quit
- Else
- If XLApp.Workbooks.Count = 1 Then 'Hidden data sheet only
- XLApp.Workbooks(XLAddin.Name).RunAutoMacros 2 'xlAutoClose, must go through Workbooks collection
- XLApp.Quit
- End If
- End If
- Set XLApp = Nothing
- End If
- End Sub
-