Try this![]()
Sub Button1_Click() Dim rng As Range, c As Range Set rng = Range("C7:G13") For Each c In rng.Cells If c.Value > 17 Then MsgBox c.Address & " is greater then 17" Next c End Sub
Try this![]()
Sub Button1_Click() Dim rng As Range, c As Range Set rng = Range("C7:G13") For Each c In rng.Cells If c.Value > 17 Then MsgBox c.Address & " is greater then 17" Next c End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks