unable to select a listbox item

chousm

New Member
Joined
May 9, 2017
Messages
6
I can populate the listbox in an excel userform with filtered data in a spreadsheet and re-order or sort the items in the listbox by clicking on a button. Everything seems to work properly except the listbox appears locked. I couldn't click on any item in the listbox to make a selection and the scrollbar also failed to work. How can I make it to work?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Check "Locked" property - it should be False.
 
Upvote 0
Without actual workbook it's hard to say the reason for being locked. Could you upload your workbook to some cloud storage (OneDrive, DropBox, Google Drive etc.)?
 
Upvote 0
Thank you, Sektor. The "Enabled" property is true.

Actually I have a multipage control in a userform. Page1 has a listbox with 6 columns and works without any problem. Page2 also has a listbox with 22 columns that gives me the problem. The properties of both listboxes are identical except the columncount and rowsource. The VBA codes for both listboxes are similar. I just could not figure out why it worked on Page1, but failed on Page 2.
 
Upvote 0
So, could you upload your workbook to some cloud storage (OneDrive, DropBox, Google Drive etc.)?
 
Upvote 0
Sektor, thank you again. I have solved the problem. In the userform_initialize procedure, I set the "Enabled" property of the listbox in Page1 to true, but forgot to set the listbox in Page2 to true.
 
Upvote 0
You're welcome!
hi.gif
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top