+ Reply to Thread
Results 1 to 3 of 3

What is Null?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    What is Null?

    Sorry to ask again but I'm confused.

    If (Range("M1").Value = Null)
    This code always seems to be true, even though the Cell is blank. The same is true for the following codes.

    If Range("M1") = Null
    If Range("M1") = ""
    If Range("M1").value = ""
    Is there a way for me to go about this code properly?
    Last edited by qcity; 06-21-2011 at 05:30 AM.

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: What is Null?

    Hi,

    The best way to check that a cell is truly empty is to use the IsEmpty() function:
    If IsEmpty(Range("M1")) Then
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: What is Null?

    Thanks that helped...

    Colin

    :D

+ 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