+ Reply to Thread
Results 1 to 3 of 3

check a cell is empty or not

  1. #1
    Forum Contributor
    Join Date
    06-04-2006
    Posts
    132

    check a cell is empty or not

    Hi,

    I was wondering if anyone might be able to help me here. I'd like to check if a certain cell is empty or not. I have tried all the following code but seems not to work.

    The cell "B3" currently is empty or null.

    Here is my code
    if worksheets("Data").range("B3").value <> "" then
    'do the following

    i have also tried: if not isnull(worksheets("Data").range("B3").value) then

    None of these two work. I wonder if i could get some help here.

    Thank you in advance

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Give a try to following :

    If Not Worksheets("Data").range("B3")="" Then

    HTH
    Cheers
    Carim

  3. #3
    Registered User
    Join Date
    09-18-2006
    Posts
    67
    Use this:

    If IsEmpty(Worksheets("Data").Range("B3").Value) Then
    'Do stuff
    End If


    - Clay
    Excel Help

+ 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