![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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! |
|
|||
|
RE: 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! > > |
|
|||
|
RE: 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! > > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|