Billdub417
New Member
- Joined
- Nov 5, 2019
- Messages
- 45
Hello, I have the following code to check that each cell = 0. There are 12 cells, for each month of the year and I was trying to make it flag up which periods did not equal zero. However, this code will only show "Period1". Thanks in advance
Code:
With Sheet22
Dim i As Integer
i = 1
For Each cell In .Range("v3:v14").Cells
If cell.value <> 0 Then
MsgBox ("Period" & i & " does not balance")
Sheets("Mapping").Select
Exit Sub
End If
Next
End With