Hello all,
I have the following code which I keep receiving errors with.
Note that ChBLine is the name of a check box.
I would like the code to be such that if the user checks the box then iRow becomes whatever cell the user is on, otherwise I want it to find the next available cell.
I have the following code which I keep receiving errors with.
PHP:
If ChBLine = True Then
iRow = ws.Range(ActiveCell.Address)
Else
If ws.Range("A2").Value <> "" Then
iRow = ws.Range("A1").End(xlDown).Row + 1
Else
iRow = ws.Range("A" & Rows.Count).End(xlUp).Row + 1
End If
End If
Note that ChBLine is the name of a check box.
I would like the code to be such that if the user checks the box then iRow becomes whatever cell the user is on, otherwise I want it to find the next available cell.