Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
EXCEL: put_DisplayAlerts fails if user is entering data and clicks toolbar button
Hello,
can't overcome this problem. I am automating xl from c++/atl and get this error.. actually not only this method fails, it's just the first i call in OnClick event. Same happens with SaveCopyAs.. the error i extract using FormatMessage(with constant get err msg from system) hr of operation: 0x800A03EC. When i pass this to FormatMessage, it fails too :) GetLastError = 317 ( i looked up this on msdn - the error message for 317 should be failed to find message or smth similar). When i recursively pass 317 to FormatMessage once again, it fails and GetLastError return 87 ( The parameter is incorrect ) that's how i call formatMessage: DWORD rc = FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, dwErr, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &lpMsgBuf, 0, NULL ); |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do i build user defined toolbar and custom button in xl07 | New Users to Excel | |||
Open an Outlook folder when a user clicks on a command button ... | Excel Discussion (Misc queries) | |||
Open an Outlook folder when a user clicks on a command button ... | Excel Programming | |||
Invalid Picture Error when user clicks on toolbar | Excel Programming | |||
How to create a URL and when user clicks it to open a Excel workbook | Excel Programming |