Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 3,986
Default how to display error message?

Is this what you are looking for?
Sub ErrorOut()
'Code that errors
On Error GoTo Handler:
'Other code
Exit Sub
Handler:
ErrMsg = Error(Err.Number)
MsgBox "Error Is: " & ErrMsg
End Sub


"LunaMoon" wrote:

Hi all,

I am using VC++ to develop some XLL file for use in Excel 2003.

Of course there are bugs.

The cell display "#NUM!".

But in VC++ I've already thrown exception with error message:

if (a!=b)
throw Constructor ("a must be equal b.", "myclass")...

Why couldn't I see the error message in Excel?

Thanks!


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 to display error message? LunaMoon Excel Discussion (Misc queries) 2 July 6th 08 08:46 PM
Excel must display error message if two blocks don't have same num Mrs Smith Excel Worksheet Functions 4 July 20th 07 01:48 PM
how to display an error message Luzzan Excel Worksheet Functions 1 April 10th 07 10:23 AM
Why error message when trying to display custom view? creativeops Excel Discussion (Misc queries) 2 January 9th 06 09:57 PM
How to display a blank cell with no error message Juco Excel Worksheet Functions 11 January 31st 05 08:24 AM


All times are GMT +1. The time now is 07:28 AM.

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

About Us

"It's about Microsoft Excel"