VBA Loops

J

JulieD

Hi Chris

something along the lines of

Sub testloop()
For Each cell In Range("A1:A10")
If UCase(cell.Value) <> "OK" Then
MsgBox cell.Address & " - not ok"
End If
Next
End Sub

Cheers
JuieD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top