Hi folks, I have been trying to populate a userform listbox with data from another workbook that is closed, but no luck!
I have attached two files - Main and TheDatabase. I would like to achieve the below:
1. Open "Main.xlsb" file
2. Click Button1
3. Userform "frmViewRecords" opens and populates with data found in TheDatabase.xlxs file. To achieve this listbox population, I would like TheDatabase.xlxs file to be opened, populate the ListBox "lstRecords" from the Main.xlsb file and then TheDatabase.xlxs file should be closed without saving changes.
4. When I click on a line of data from the ListBox in Section A, I want that corresponding data to populate the associated TextBoxes of Section B.
Can you please assist? You can use whatever corresponding paths apply in your system for the location of TheDatabase.xlsx file when writing/testing the code, however we can assume that the path is C:\Users\ComputerName\Desktop\New folder\TheDatabase.xlsx
I don't want to use ADO.
Also, I tried online examples which did not work, such as the below:
Thanks!
Bookmarks