Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combobox.Rowsource populated from a database 1

Status
Not open for further replies.

rafal36

Programmer
Oct 16, 2008
5
Hello everyone!
I have a combobox that I want to populate not from a sheet range but from a postgres database query result. Excel Help says that ComboBox.RowSource accepts only ranges from a spreadsheet. Is there a workaround for this to have a combobox populated dynamically by query result?
Thanks for tips,
 
Yes, there is:
1. inport your data to the worksheet (data>external data>new database query), one column, no headers, customise query name ('properties..' button after defining data or 'properties' button after import in 'external data' toolbar),
2. refer to the list as to sheet-level named range (SheetName!ExternalDataRangeName).
Adjust refreshing options for the data range.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top