Import combobox data from Excel into access

uwlchemist

New Member
Joined
Aug 29, 2009
Messages
38
I have a routine that imports Excel data into an access form. It works great when the data is located in Cells. I decided to explor using comboboxes in excel to allow users to select data, and am not having a hard time importing that data into my access form. This is the typical code I use to import the data

frm.txtTargetRotationRate = XlSheet.Range("TargetRotationRate")

When I try the same thing using the combobox, I get an error saying thet the control does not exist...but it does (have checked everything multiple times)

frm.txtFilmTime = XlSheet.cmpFilmPersistency

How do I refer to the Excel combobox and the data within it?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Does the combo have a linked cell (Forms control) or a Row Source (ActiveX control?)
If so, reference those cells to get the combo's data. If not, link the combos to cells...

Denis
 
Upvote 0
OK, that is what I had decided to do. It seems odd to me that you can't reference the value of the combobox, but you can the value of an individual cell.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,901
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top