ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using a Variable to point out a listbox. (https://www.excelbanter.com/excel-programming/418755-using-variable-point-out-listbox.html)

Maarten Kouwenhoven

Using a Variable to point out a listbox.
 
Hi There,



In Excel I have written a function to extract information out of a database.
With this data I fill a predefined Listbox. The function has the following
input : SQL, username, password and database name. Furthermore the function
is working perfectly!



Since I need to fill several Listboxes (in this application and in the
future) is there a possibility to pass the name of the Listbox into my
function and use this variable to point out the listbox and fill it with the
extracted information.



Any help would be appreciated!



Best Regards,



Maarten Kouwenhoven




All times are GMT +1. The time now is 05:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com