Results 1 to 2 of 2

VBA if end if return value based on empty cell

Threaded 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.

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