Closed Thread
Results 1 to 2 of 2

VBA if end if return value based on empty cell

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2010
    Location
    Calgary
    MS-Off Ver
    Excel 2007
    Posts
    19

    VBA if end if return value based on empty cell

    Sorry, wrong forum. I'll move this to the programming forum.


    I am a light user of VBA code, primarily use it to format data pulled from sharepoint. I have found some code= used for multiple if statements,

    Sub IFs()
    Set MyPlage = Range("S3:S121")
    For Each Cell In MyPlage

    If Cell.Value = 0 Then
    Cell.Interior.ColorIndex = 19
    End If
    If Cell.Value > 0 Then
    Cell.Interior.ColorIndex = 10
    End If
    If Cell.Value < 0 Then
    Cell.Interior.ColorIndex = 7
    End If
    Next
    End Sub

    I need at add a condition where a blank cell is recognized. I appreciate any help.

    Thanks
    Last edited by melbri; 11-05-2010 at 02:35 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VBA if end if return value based on empty cell

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

Closed 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