+ Reply to Thread
Results 1 to 4 of 4

populate userform combobox with sheet names

  1. #1
    Registered User
    Join Date
    02-11-2008
    Posts
    68

    populate userform combobox with sheet names

    Hello,

    Could someone suggest how I can populate a userform combobox with the visible worksheets names ?

    thanks
    tasos

  2. #2
    Forum Contributor
    Join Date
    06-14-2008
    Posts
    153
    Hi,

    Try this code (Change ComboBox1 to the name of your combo box):

    Please Login or Register  to view this content.
    You can put it in the Form_Activate event.

    Regards.
    Welcome to: http://www.exceldigest.com/myblog/
    "Excel help for the rest of us"

  3. #3
    Registered User
    Join Date
    02-11-2008
    Posts
    68
    that's great.

    When the userform is activated the combobox is blank.

    How can I make it to select the name of the first sheet by default?

    thanks again

  4. #4
    Forum Contributor
    Join Date
    06-14-2008
    Posts
    153
    Here is a revised version to take care of the combo text:

    Please Login or Register  to view this content.
    Just replace the previous code with this one.

    Regards.

+ 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