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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top