Import list in to a Row Source

M

Mike Busch

How can I take a list from Excel and import it into a Row source list for a
combo box. I have 70 Facilities that I would like to have in a drop-down list
and have them in a excel program. Any ideas thanks in advance.
 
J

John Nurick

Hi Mike,

If you want the row source to be linked to the Excel sheet, just use
query, something like this:

SELECT F1 FROM [Excel 8.0;HDR=No;database=D:\File.xls;].[Sheet1$A2:A71];

Otherwise, select the cells in Excel, then copy and paste into a text
editor (or Paste Special into Word as unformatted text). Then replace
all the newlines with semicolons to get from
Facility1
Facility2
Facility3
...
to
Facility1;Facility2;Facility3;...

Finally, copy and paste the result into the RowSource.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top