I am trying to come up with a code to find the next cell in a column and the one I have works prefectly but it needs a little tweaking. What I am trying to do is to find the first empty cell in column B, within range B2:B13 and if there is not an empty cell, then to check for the next empty cell in "C" (range C2:C13) and so on until column F
This is what I have so far.
This is what I have so far.
Code:
If Application.WorksheetFunction.CountA("B2:B13") = 0 Then
MsgBox ("TEST CAN NOT FIND EMPTY CELL")
Else
On Error Resume Next
Columns(2).SpecialCells(xlCellTypeBlanks)(1, 1).Select
If Err <> 0 Then
On Error GoTo 0
[B13].End(xlUp)(2, 1).Select
End If
On Error GoTo 0
End If
ActiveCell.Value = TextBox6.Value * -1
End If