Permission Denied

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




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
B

Bill Li

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

Top