View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel[_2_] Frank Kabel[_2_] is offline
external usenet poster
 
Posts: 1
Default Error handling in vba function

Hi
use the CVErr function in the VBA help

Regards
Frank

-----Original Message-----
In general, what would be the best way to show an error

message from a vba
function ?

I've tried a MsgBox call, but this is anoying when the

function editor
(shown after clicking the = button) is used. The function

editor tries to
evaluate the function before all parameters are entered

completely. This
causes an error in my vba function which then interrupts

the parameter
selection with the message box.

Is there some way to determine is the function editor (is

it called this way
?) is visible ? so I can surpress the error message in

that case ?

TIA for any help !

Jaap Versteegh


.