Hi!
I would like to write a macro that shows all cells address (or row) which value is 0 in column 10.
So far i only could manage this:
Sub check()
Dim LastRow As Long
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
For i = 2 To LastRow
If Cells(i, 10).Value = 0 Then
MsgBox ("0 value in" & Cells(i, 10).Address & "cell)
End If
Next i
End Sub
But my problem is, that it shows a lot of separate msgbox, but I would like only one, which contains all the addresses.
Thank you for your help!
I would like to write a macro that shows all cells address (or row) which value is 0 in column 10.
So far i only could manage this:
Sub check()
Dim LastRow As Long
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
For i = 2 To LastRow
If Cells(i, 10).Value = 0 Then
MsgBox ("0 value in" & Cells(i, 10).Address & "cell)
End If
Next i
End Sub
But my problem is, that it shows a lot of separate msgbox, but I would like only one, which contains all the addresses.
Thank you for your help!