View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
evgny[_2_] evgny[_2_] is offline
external usenet poster
 
Posts: 28
Default looking for the empty cell

You can try this.


Private Sub TextBox1_Change()
If TextBox1 < "" Then

Dim colA As Double
colA = Cells(Rows.Count, "A").End(xlUp).Row + 1

ActiveSheet.Range("A" & colA).Value = TextBox1.Value
TextBox1 = ""
End If
End Sub

Regards
Yngve