I have the following code that adds items from a list box starting in Cell A15, if I go back into the list box, it rewrites over the first items, how can I have it start on the first empty row starting at 15? Code below
Private Sub CommandButton3_Click()
Dim lngLastRow As Long
Dim lngCol As Long
Dim lngIndex As Long
For lngIndex = 0 To ListBox2.ListCount - 1
Cells(lngIndex + 15, 1).Value = ListBox2.List(lngIndex)
Next
Unload Me
End Sub
Having trouble figuring out the if thens