We help IT Professionals succeed at work.

Populating Cells in excel using a combo box in excel from an access table or query.

Last Modified: 2017-03-16
What I'm trying to accomplish is getting data from a table in Access to Excel only populating certain cells within an Excel Sheet by selecting the Supplier Name from a drop down box that user selects.  The Combo Box selection is in the Excel file.

 I have a database called Supplier

 For example: Table Called Supplier.  When the user selects a Supplier name it populates the following:

 Supplier_Name to cell B3
 Supplier_Address to cell B4
 Supplier_City to cell B5
 Supplier_ST to cell C5
 Supplier_Zip to cell B6
 Supplier_POC to cell B9
 Supplier_Phone to cell B12
 Supplier_Fax to cell B15

 The Excel file is called RFQ:  

 See attached files
Watch Question

Distinguished Expert 2017

Since the sheet you want to populate is not a "table", then you have to use OLE automation.  That means you need to write VBA code to open Excel and update each cell one at a time.  You can't use TransferSpreadsheet.
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Please find the attached with a drop down in cell B3 on Sheet1.
The code assumes that the database C--Users-Luis.Freund.EXT-Desktop-E.accdb is saved at your desktop.
So once you select a name from the drop down in B3, the code will retrieve the relevant data on the AccessData sheet and the formulas on Sheet1 will return all the data from AccessData sheet.
The third sheet is called List contains a list of suppliers which is used as a source for validation list in B3 on Sheet1.

See if this is what you were trying to achieve.

Note: This is a macro-enabled workbook so you will need to enable the macros while prompted.



I added more records to the DB and added the supplier name to sheet3 but on the dropdown box I'm not seeing the new suppliers I added.

any ideas?
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Okay. Please find the attached and just add suppliers names on List sheet starting from A2 and all the names would be visible in the drop down list in B3 on Sheet1.


THIS IS GREAT!   Another quick question....how did you create the combo box and link it to the list?
Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions