+ Reply to Thread
Results 1 to 2 of 2

Populate a Listbox with external database

  1. #1
    Registered User
    Join Date
    03-31-2020
    Location
    Italy
    MS-Off Ver
    2013
    Posts
    2

    Populate a Listbox with external database

    Hi All,

    I have a question. I have Workbook1 and Workbook2. I want to have in WB1 a userform with a Listbox populate with data taken from WB2 (sheet1).

    Usually if I want a ListBox in a workbook, I use the following code. I would like to modify the code in order to have a Listbox as described above. I try but it gives me Error in Row Source.
    Thank you!!!

    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 04-10-2020 at 11:10 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner VA USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,509

    Re: Populate a Listbox with external database

    You must use this format, but a reference to an external workbook will only work for this when the other workbook is open.

    Please Login or Register  to view this content.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Populate listbox based on a database search using a textbox
    By Dotreena in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 01-25-2018, 06:22 AM
  2. Replies: 7
    Last Post: 01-29-2017, 03:22 PM
  3. Populate (ca 200) Txtboxes depending on listbox selection, live-filter for listbox &1 more
    By InternInNeed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2016, 09:56 AM
  4. Populate ComboBox from Database based on ListBox selection
    By kukreja.v in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2015, 09:53 AM
  5. [SOLVED] How do I populate a listbox with a list excluding values found in another listbox?
    By Hokiefan00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2014, 01:47 PM
  6. Populate listbox with records from Access database
    By chinaboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-07-2012, 08:06 AM
  7. populate listbox based on selection in previous listbox
    By sarahng86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2007, 10:55 PM

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