Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.
Dim r As Range
Set r = Range($F$15:$L$17).SpecialCells(xlCellTypeBlanks)
Open in new window
Dim r As Range
Set r = Range("$F$15:$L$17").SpecialCells(xlCellTypeBlanks)
Dim rng As Range
Dim cl As Object
Dim intRow As Integer
For intRow = 15 To 17
Set rng = Range("$F$" & intRow & ":$L$" & intRow)
For Each cl In rng
If IsEmpty(cl) Then
'no blank found - message
MsgBox "No empty cells found in the specified range.", vbExclamation + vbOKOnly, "Notice"
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
Function firstblankinrange(ByRef myrange As Range) As String
Dim itercol As Integer
Dim iterrow As Integer
For itercol = 1 To myrange.Columns.Count
For iterrow = 1 To myrange.Rows.Count
If myrange.Cells(iterrow, itercol).Value = "" Then
firstblankinrange = myrange.Cells(iterrow, itercol).Address
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.