+ Reply to Thread
Results 1 to 4 of 4

How to cause a #num! error

  1. #1
    Ken Kazinski
    Guest

    How to cause a #num! error

    Hi,

    Is there a way to have a function return a error message? I would like one
    of my functions to return a #num! error when the range passed to it is empty.

    Thanks,

    Ken


  2. #2
    Andrew Taylor
    Guest

    Re: How to cause a #num! error


    Function ReturnsHashNum()
    ReturnsHashNum = CVErr(xlErrNum)
    End Function

    There are other error consts if you need them- xlErrNA.
    xlErrDiv0, etc

    Andrew



    Ken Kazinski wrote:
    > Hi,
    >
    > Is there a way to have a function return a error message? I would like one
    > of my functions to return a #num! error when the range passed to it is empty.
    >
    > Thanks,
    >
    > Ken



  3. #3
    Ken Kazinski
    Guest

    Re: How to cause a #num! error

    Thanks that gave an error in the cell - just not a num error.




  4. #4
    Dave Peterson
    Guest

    Re: How to cause a #num! error

    It returned #NUM! for me.

    What did you get?

    Ken Kazinski wrote:
    >
    > Thanks that gave an error in the cell - just not a num error.


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1