Hi
I'm trying to put header for Listbox in userform. I have tried rowsource but it is not working the value just populating in another row instead of header - Please sort me out guys.
ThanksPlease Login or Register to view this content.
Thiru
Hi
I'm trying to put header for Listbox in userform. I have tried rowsource but it is not working the value just populating in another row instead of header - Please sort me out guys.
ThanksPlease Login or Register to view this content.
Thiru
I just saw this this morning and you might be able to solve your problem if you watch this video. You have to pay close attention as the property dialogue is opened and various changes are made.
http://www.youtube.com/watch?v=5oXcct1mOUw
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
Hi
Anyway I found it below are the steps to use it - This is for the guys who struggling in Userform Listbox Header .
To list header first we should change the Listbox property Column Heads to true
Then in vba use shoud use rowsource i.e. listbox1.rowsource = "A10:D5" - The value in the A11 to D11 will be the header. And also This will take acivesheet range so just specify the range only, don't specifiy the sheet name or workbook name.
And if you are clearing the listbox you should use Listbox.rowsource = "" - You should not use Listbox.clear it will throw error.
Thats it guys.Please Login or Register to view this content.
Thanks
Thiru
Last edited by sthiru; 06-21-2013 at 11:41 AM. Reason: inserting code
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks