copy coding

charly1

Board Regular
Joined
Jul 18, 2023
Messages
87
Office Version
  1. 365
Platform
  1. Windows
Hi all

I'm pretty new to excel and don't even know if my question is a simple one or not, although any help would be greatly appreciated.


I have attached a user form which contains a searchable combo box [not my creation]. I would like to insert into this user form a separate combo box which utilizes the same coding except that the source data for each should be different. Obviously both combo boxes have to be able to work independently of each other, despite much of their coding being identical.

I cannot seem to be able to work this out on my own.

Thanks ever so much for any help
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I never click on links like this.
So, show me the code you have in the combobox.
And or the other code that performs the task you want to achieve.

One combobox can do a lot of things.
Like if choose the value "One" in the combobox.
A script in the combobox could copy the range "One."
And paste that range somewhere else.
Or if you choose "Two" in the combobox something else could happen.
All of this with just one combobox.
Hi all

I'm pretty new to excel and don't even know if my question is a simple one or not, although any help would be greatly appreciated.


I have attached a user form which contains a searchable combo box [not my creation]. I would like to insert into this user form a separate combo box which utilizes the same coding except that the source data for each should be different. Obviously both combo boxes have to be able to work independently of each other, despite much of their coding being identical.

I cannot seem to be able to work this out on my own.

Thanks ever so much for any help
 
Upvote 0
I have already just copied the code over and renamed all the varibles to make them unique. Its not really a solution to the problem, however it works for me.

Ime pretty new here so Ime not sure if in my case i am supposed to mark my query as solved or not.

Sorry for bothering you.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,977
Members
449,095
Latest member
Mr Hughes

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