+ Reply to Thread
Results 1 to 7 of 7

How to show MsgBox if a any cell value is > 17 in a range

Hybrid View

  1. #1
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to show MsgBox if a any cell value is > 17 in a range

    If WorksheetFunction.CountIf(Range("C3:G13"), ">17") Then
        MsgBox "One of the cell values is greater than 17"
    End If
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  2. #2
    Registered User
    Join Date
    12-09-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    13

    Unhappy Re: How to show MsgBox if a any cell value is > 17 in a range

    Hi Palmetto

    Thanks for replying so quick but the code doesn't do anything, no errors etc and no messages come up when one of the cells in the range is greater then 17.

+ 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