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: 97
Default how to display error message?

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!

  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 3,942
Default how to display error message?

hi
not sure if i'm uderstanding correctly but if a cell is displaying #NUM!,
that is the error.
what is the fomula that is generating the error.
see this site for a explination of excel formula errors.
http://www.dummies.com/WileyCDA/Dumm...FFICESOFT.html

regards
FSt1

"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!


  #3   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
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
Why error message - not enough system resources to display comple. BHodges Excel Discussion (Misc queries) 1 September 20th 05 10:01 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 06:26 PM.

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"