Help! I cannot get this to run. I am creating a userform. It even copied it from other spreadsheets where it worked fine, but it is not working.
Error Message:
Compile Error
Method or Data Member Not Found
CODE:
`
Thanks Everyone!
Error Message:
Compile Error
Method or Data Member Not Found
CODE:
VBA Code:
Private Sub UserForm_Initialize()
Application.ScreenUpdating = False
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("cdb")
lastrow = ws.Range("a" & Rows.Count).End(xlUp).Row
For i = 2 To lastrow
Me.TextBox1.AddItem ws.Cells(i, 1)
Next i
Application.ScreenUpdating = True
End Sub
Thanks Everyone!