+ Reply to Thread
Results 1 to 3 of 3

IsMissing Returning False

  1. #1
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    IsMissing Returning False

    Writing a function to shuffle some numbers. This is working:
    Please Login or Register  to view this content.
    However, I want to define mySeed as an integer, and whenever I change the function declaration to:
    Please Login or Register  to view this content.
    the IsMissing(mySeed) test is always returning False.

    I even copied some code from 'Power Programming in VBA' it is has the same issue. If the parameter is defined, then IsMissing returns False.

    Pauley
    Last edited by Pauleyb; 03-09-2012 at 09:44 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: IsMissing Returning False

    Hi

    Have a look at the note in this.

    rylo

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: IsMissing Returning False

    Hello rylo,
    It appears you are correct. Only truly works with Variant types because of the flag. What gets me is I did read the help file for IsMissing, but I guess I read over the 'Note' which details that it does not work with simple data types. Also, the fact that a book that I trust used it incorrectly in an example through me off track.

    Pauley

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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