ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,731
- Office Version
- 2007
- Platform
- Windows
My worksheet has headers at Row 4
Row 5 is hidden
All my value are then Row 6 & down the page.
This above is Table 30
I use this code below to find a blank cell in column N
The code does what its supposed to all apart from one issue.
The issue is that it always obvioulsy finds Row 5
Row 5 is hidden
All my value are then Row 6 & down the page.
This above is Table 30
I use this code below to find a blank cell in column N
The code does what its supposed to all apart from one issue.
The issue is that it always obvioulsy finds Row 5
Rich (BB code):
Dim myRange As Range
Set myRange = Range("Table23").ListObject.DataBodyRange
For Each myCell In Intersect(Columns("N"), myRange) ' COLUMN WITH NO INVOICE NUMBER
If IsEmpty(myCell) Then
With Range("A" & myCell.Row)
If MsgBox("EMPTY INVOICE CELL LOCATED AT ROW: " & myCell.Address(0, 0) & vbCr & vbCr & _
"THE CUSTOMER IS : " & .Value & vbCr & vbCr & _
"IS THIS THE CUSTOMER YOU ARE LOOKING FOR ?", vbCritical + vbYesNo, "CUSTOMER INVOICE SEARCH") = vbYes Then
.Select
Exit Sub
End If
End With
End If
Next myCell
MsgBox "THERE ARE NO BLANK INVOICE CELLS" & vbNewLine & vbNewLine & "SO THE SEARCH IS NOW COMPLETE", vbInformation, "BLANK CELL MESSAGEE"
Range("A6").Select