Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i build user defined toolbar and custom button in xl07 velvetlady New Users to Excel 6 December 16th 08 12:31 AM
Open an Outlook folder when a user clicks on a command button ... Rob Keel Excel Discussion (Misc queries) 2 August 1st 05 08:23 AM
Open an Outlook folder when a user clicks on a command button ... Rob Keel Excel Programming 2 August 1st 05 08:23 AM
Invalid Picture Error when user clicks on toolbar David Welch[_2_] Excel Programming 1 March 24th 05 10:24 AM
How to create a URL and when user clicks it to open a Excel workbook Belinda Excel Programming 2 May 30th 04 01:06 PM


All times are GMT +1. The time now is 02:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"