+ Reply to Thread
Results 1 to 4 of 4

isEmpty-related command names

  1. #1
    Forum Contributor
    Join Date
    07-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    109

    isEmpty-related command names

    Is there a way to return TRUE to the statement "IF a cell is empty (even if it has a formula) THEN"?

    I have a cell that multiplies two values (one of which is a blank cell), thus displaying nothing in the cell. However, when I use the ISNUMBER function VBA returns TRUE. Any other commands I might be able to use? Thanks.

    My current code:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: isEmpty-related command names

    use LEN function to check if the cell has any value

    If Len(trim(cell.value)) = 0 then
    insert your procedure here

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: isEmpty-related command names

    try it
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-12-2013
    Location
    Los angeles, CA
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: isEmpty-related command names

    Thank you both, both options work for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA command switch between worksheets / tabs without names
    By Jack7774 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-07-2013, 02:49 PM
  2. Totaling values related to names
    By mitchellclark91 in forum Excel General
    Replies: 3
    Last Post: 04-26-2012, 03:37 PM
  3. Create Command Buttons based on Worksheet Names
    By Qppg in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-20-2010, 12:53 AM
  4. Macro problems related to file names
    By lphuk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-19-2008, 03:36 AM
  5. Add Database Names, table names & related fields from table in combo box
    By Snowy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-29-2006, 08:15 AM

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