+ Reply to Thread
Results 1 to 5 of 5

Populate a Dropdown with names of open workbooks, when slected store as variable

  1. #1
    Registered User
    Join Date
    06-04-2009
    Location
    salt lake, utah
    MS-Off Ver
    Excel 2007
    Posts
    5

    Populate a Dropdown with names of open workbooks, when slected store as variable

    I am trying to create a dropdown that is polulated with the names of the open workbooks. When the user selects the workbook from the dropdown list I want to store that as a variable.

    So far I have a dropdown that populates the open workbooks however it does not seperate them correctly. It displays in one row.


    I also don't have the piece that will store that as a variable to be used later.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Populate a Dropdown with names of open workbooks, when slected store as variable

    Would this work for you
    HTML Code: 
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    06-04-2009
    Location
    salt lake, utah
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Populate a Dropdown with names of open workbooks, when slected store as variable

    I couldn't get that to work.

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Populate a Dropdown with names of open workbooks, when slected store as variable

    Make a userform.
    Put 1 combobox in in (by default it is ComboBox1)
    Press F7
    Paste the code
    Press F5 to run

  5. #5
    Registered User
    Join Date
    06-04-2009
    Location
    salt lake, utah
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Populate a Dropdown with names of open workbooks, when slected store as variable

    Thank you for you response rwgrietveld.
    I have created the serform and it populates as it should. I have also created a button to close the form.

    What I am trying to do is take the selection from the dropdown on the userform and use it as a variable for macros which I have in Module1. Right now the variable is empty in the module
    Form:
    Please Login or Register  to view this content.
    Module1:
    Please Login or Register  to view this content.

+ 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