VERSION 5.00 Begin VB.Form frmAddIn BorderStyle = 3 'Fixed Dialog Caption = "My Add In" ClientHeight = 3195 ClientLeft = 2175 ClientTop = 1935 ClientWidth = 6030 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 3195 ScaleWidth = 6030 ShowInTaskbar = 0 'False StartUpPosition = 2 'CenterScreen Begin VB.CommandButton CancelButton Caption = "Cancel" Height = 375 Left = 4680 TabIndex = 1 Top = 600 Width = 1215 End Begin VB.CommandButton OKButton Caption = "OK" Height = 375 Left = 4680 TabIndex = 0 Top = 120 Width = 1215 End Attribute VB_Name = "frmAddIn" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Public VBInstance As VBIDE.VBE Public Connect As Connect Option Explicit Private Sub CancelButton_Click() Connect.Hide End Sub Private Sub OKButton_Click() MsgBox "AddIn operation on: " & VBInstance.FullName End Sub