Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In an already working well VB6 written COM addin, in order to obtain that my
COM Add-in intercept WorkbookOpen event I added these lines to the Connect.dsr code: *** Dim oMyApp As New ClassXlApp .... Private Sub AddinInstance_OnConnection(ByVal Application As Object, ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _ ByVal AddInInst As Object, custom() As Variant) On Error Resume Next Set oXl = Application Set oMyApp.App = Application .... *** Instead ClassXlApp contains: *** Public WithEvents App As Excel.Application Private Sub App_WorkbookOpen(ByVal Wb As Excel.Workbook) Dim sExt As String On Error GoTo Linea12 MsgBox "ClassXlApp - You open a sheet!!!" Linea12: On Error GoTo 0 End Sub *** but no message box appear. What I forget to add to my code ? TIA, Maurizio ================================================== ======= BELLANTONE MAURIZIO - Teacher, IT Consultant, Programmer SPINETTA MARENGO (AL) - ITALY --------------------------------------------------------- E-mail: bellantoneCHIOCCIOLAlibero.it ================================================== ======= |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
axWebBrowser1_DocumentComplete event handle | Excel Programming | |||
WorkbookOpen Event | Excel Programming | |||
how to handle 'sheetchange' event on 'add-in' | Excel Programming | |||
= How to setup vars when a workbookopen event is launched? | Excel Programming | |||
WorkbookOpen event unpredictable | Excel Programming |