Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Permission Denied


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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Permission Denied

Maybe you forget the userform name

Userform1.ListBox1.AddItem StudyInput

Best Regards

Bill
-----Original Message-----

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!
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied LE94553 Excel Discussion (Misc queries) 0 December 4th 07 01:29 AM
Access denied richn Excel Discussion (Misc queries) 4 October 30th 07 01:07 AM
Secondayr axis denied Phil Hageman Charts and Charting in Excel 2 July 19th 05 11:43 AM
Worksheet Access Denied Nick Excel Discussion (Misc queries) 3 July 7th 05 02:48 PM
Error Msg: Permission to use object denied A. Nguyen Excel Programming 4 July 14th 03 09:05 PM


All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"