Set the value of Application.OnSheetDeactivate
                HRESULT OleSetOnSheetDeactivate( const CString& strMacro );  | 
            
The new value of Application.OnSheetDeactivate which should be a macro name.
Header: xlpcom.h
CXllCom Class | CXllCom Methods | CXllCom::OleGetOnSheetDeactivate()