I'm trying to use the following code to read entries in Column J (starting at row 1) of Sheet 1 and add each value to a list box until a blank entry is found. I can't figure out why it's not working. Help would be appreciated.
Private Sub UserForm_Activate()
Dim Insert_Name
Dim Counter
Counter = 0
Do While Insert_Name <> ""
Counter = Counter + 1
Insert_Name = Worksheets("Sheet1").Cells(Counter, 10).Value
ListBox1.AddItem Insert_Name
Loop
End Sub
Private Sub UserForm_Activate()
Dim Insert_Name
Dim Counter
Counter = 0
Do While Insert_Name <> ""
Counter = Counter + 1
Insert_Name = Worksheets("Sheet1").Cells(Counter, 10).Value
ListBox1.AddItem Insert_Name
Loop
End Sub