+ Reply to Thread
Results 1 to 3 of 3

UserformListbox Header

  1. #1
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    UserformListbox Header

    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.


    Please Login or Register  to view this content.
    Thanks
    Thiru

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: UserformListbox Header

    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

  3. #3
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: UserformListbox Header

    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.

    Please Login or Register  to view this content.
    Thats it guys.

    Thanks
    Thiru
    Last edited by sthiru; 06-21-2013 at 11:41 AM. Reason: inserting code

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1