Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi - I had the same problem. Resetting after an error left the SheetSelectionChange event handling I implemented in an Add In (see 'Application Events' (http://www.cpearson.com/excel/AppEvent.aspx)) not working. The work around was to relaunch Excel. Here's how I fixed it ... In my Add in ThisWorkbook code I have: Private XLApp As CExcelEvents Public Sub Workbook_Open() Set XLApp = New CExcelEvents End Sub I found that if you run this Workbook_Open sub after an error the event triggering works again. In my vb app I added a menu item that called it so the user can fix it. Private Sub ResetEvents() ThisWorkbook.Workbook_Open End Sub Hope this helps. -- lesco_quartz ------------------------------------------------------------------------ lesco_quartz's Profile: http://www.thecodecage.com/forumz/me...hp?userid=1198 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=148822 Microsoft Office Help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Enable Multiple events in the same time | Excel Programming | |||
Help with Enable Macro Error Msg (Excel 2007) | Excel Programming | |||
Enable/Disable CommandBar Buttons Based on Events | Excel Programming | |||
combobox change event is running when enable events is false | Excel Programming | |||
Enable events | Excel Programming |