ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Userform Listbox using an active sheet (https://www.excelbanter.com/excel-discussion-misc-queries/74693-userform-listbox-using-active-sheet.html)

[email protected]

Userform Listbox using an active sheet
 
I am having problems showing a database that I created. Every database
is named DB. I created a userform and I want the list box to show the
database from the active sheet. How do I write that formula in VB? If
someone could please help me it would be much appreciated

Sub SelectItemsActive()
UserForm1.ListBox1.RowSource = "=ActiveSheet!DB"
UserForm1.Show
End Sub



All times are GMT +1. The time now is 06:07 AM.

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