UserForm with dropdown cells

B-Man

Board Regular
Joined
Dec 29, 2012
Messages
185
Office Version
  1. 2019
Platform
  1. Windows
I have a group of cells that I fill with information for the rest of the sheet to work with.
some are just standard cells and that's fine but I have some setup as data validation lists with the in cell dropdown ticked.

how do I input that into the userform to allow me to do the same thing as the data validation list but inside the userform?
or do I have to remove the data validation list and create a listbox?
id like to keep it setup as how it is if I want to manually change something rather than having to open the userform just to change one thing.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
ended up finding this formula when i found the right google search terms
VBA Code:
uf.ComboBox1.List = Split(Range("C7").Validation.Formula1, ",")
where uf=userform name and range "c7" is where your existing data validation is
 
Upvote 0
Solution

Forum statistics

Threads
1,223,929
Messages
6,175,449
Members
452,642
Latest member
acarrigan

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