/** An identifier not corresponding to any VBA document event. */ constlong NO_EVENT = -1;
// Global events (identifiers from 1 to 999)
/** New document opened from template. No arguments. */ constlong AUTO_NEW = 1; /** Document opened (loaded). No arguments. */ constlong AUTO_OPEN = 2; /** Document about to be closed. No arguments. */ constlong AUTO_CLOSE = 3; /** Application start. No arguments. */ constlong AUTO_EXEC = 4; /** Application exit. No arguments. */ constlong AUTO_EXIT = 5;
// MS Word (identifiers from 1001 to 1999)
/** New text document opened from template. No arguments. */ constlong DOCUMENT_NEW = 1001; /** Text document opened (loaded). No arguments. */ constlong DOCUMENT_OPEN = 1002; /** Document about to be closed. No arguments. */ constlong DOCUMENT_CLOSE = 1003;
// MS Excel (identifiers from 2001 to 2999)
// document events (2001-2099)
/** Document activated. No arguments. */ constlong WORKBOOK_ACTIVATE = 2001; /** Document deactivated. No arguments. */ constlong WORKBOOK_DEACTIVATE = 2002; /** Document opened (loaded). No arguments. */ constlong WORKBOOK_OPEN = 2003; /** Document about to be closed. Arguments: [out] boolean bCancel. */ constlong WORKBOOK_BEFORECLOSE = 2004; /** Document about to be printed. Arguments: [out] boolean bCancel. */ constlong WORKBOOK_BEFOREPRINT = 2005; /** Document about to be saved. Arguments: boolean bSaveAs, [out] boolean bCancel. */ constlong WORKBOOK_BEFORESAVE = 2006; /** Document has been saved. Arguments: boolean bSuccess. */ constlong WORKBOOK_AFTERSAVE = 2007; /** New sheet inserted. Arguments: short nSheet. */ constlong WORKBOOK_NEWSHEET = 2008; /** Document window has been activated. Arguments: XController aController. */ constlong WORKBOOK_WINDOWACTIVATE = 2009; /** Document window has been deactivated. Arguments: XController aController. */ constlong WORKBOOK_WINDOWDEACTIVATE = 2010; /** Document window has been resized. Arguments: XController aController. */ constlong WORKBOOK_WINDOWRESIZE = 2011;
// sheet events (2101-2199)
/** Worksheet has been activated (made visible). Arguments: short nSheet. */ constlong WORKSHEET_ACTIVATE = 2101; /** Worksheet has been deactivated (made not visible). Arguments: short nSheet. */ constlong WORKSHEET_DEACTIVATE = 2102; /** Double click in the sheet. Arguments: XRange/XSheetCellRangeContainer aRange, [out] boolean bCancel. */ constlong WORKSHEET_BEFOREDOUBLECLICK = 2103; /** Right click in the sheet. Arguments: XRange/XSheetCellRangeContainer aRange, [out] boolean bCancel. */ constlong WORKSHEET_BEFORERIGHTCLICK = 2104; /** Cells in sheet have been recalculated. Arguments: short nSheet. */ constlong WORKSHEET_CALCULATE = 2105; /** Cells in sheet have been changed. Arguments: XRange/XSheetCellRangeContainer aRange. */ constlong WORKSHEET_CHANGE = 2106; /** Selection in sheet has been changed. Arguments: XRange/XSheetCellRangeContainer aRange. */ constlong WORKSHEET_SELECTIONCHANGE = 2107; /** Hyperlink has been clicked. Arguments: XCell aCell. */ constlong WORKSHEET_FOLLOWHYPERLINK = 2108;
/** Implementations are allowed to use identifiers above this value for any
internal purpose. */ constlong USERDEFINED_START = 1000000;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.