Sub test2()
Range("K2").Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Offset(0, 1).Select
Loop
End Sub
On Nov 14, 12:43*am, Hal <H...@discussions.microsoft.com> wrote:
> I have the range K2:V2. I want to start at K2 and check if the cell is empty.
> If so select it, if not, check L2, M2 . . . V2 until the first empty cellin
> this range is found, and then select it. The code below will work but I would
> like to have something more professional.
>
> Signed, Novice at work
>
> * * If Range("K2").Value = "" Then
> * * *Range("K2").Select
> * * Elseif Range("L2").Value = "" Then
> * * *Range("L2").Select
> * * .
> * * .
> * * .
> * * Else
> * * *Range("V2").Select
|