Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
Im trying to prevent the OnWorkbookClose() event from running by setting the cancel flag to true, however after this the program just hangs for until i stop the debugger. Current Code is... STDMETHODIMP CAppEventListener::HandleBeforeWorkbookClose(IDisp atch* xlBook, VARIANT_BOOL* fCancel) { *fCancel = VARIANT_TRUE; HRESULT hr = S_OK; return hr; } I cant see exactly where the problem is but im sure its in this function somewhere. This function is called when the BeforeWorkbookClose() Event is fired. Any help you guys might be able to offer would be greatly apreicated Joel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MenuBar & Event problems | Excel Discussion (Misc queries) | |||
change event problems | Excel Programming | |||
problems with Add-In event procedures when moving WB files between computers | Excel Programming | |||
Problems with event handlers | Excel Programming | |||
If... Then Loop problems in Worksheet Event | Excel Programming |