Permission Denied

  • Thread starter Thread starter Audrey Ng
  • Start date Start date
A

Audrey Ng

Hi everyone,

I have a listbox and I want to add an item to this listbox based on what
the user enters in the InputBox. I'm getting a permission denied error.
Any ideas? Here's my code:

Private Sub CommandButton5_Click()

StudyInput = InputBox("Please enter the new study")
ListBox1.AddItem StudyInput

End Sub
 
Maybe you forget the userform name

Userform1.ListBox1.AddItem StudyInput

Best Regards

Bill
 
Back
Top