Populating a combo box based on the options of two other combo boxes

Oliver1804

New Member
Joined
Jan 30, 2020
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

Sorry if this is confusing at all but I could do with some help.

Drawing Type Type Drawing Number
- E - Exist -E301 'Electrical proposed drawing
- M - Prop -M101 'Mechanical Proposed Drawing
- M&E -ME201 'Mechanical Proposed Drawing
-EX301 'Electrical existing drawing
-MX101 'Mechanical existing Drawing
-MEX201 'Mechanical existing Drawing


I was wondering whether I am able to produce a Drawing Number based on what has been selected in the drawing type and type combo box so if "E" and then "Exist" the numbers displayed are E301, E302, E302 etc

Thank you any input is appreciated.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi Oliver - it is confusing (to me anyway) - can you install XL2BB and then use it to post your data in a format we can look at? You get a link to XL2BB from the link above the reply area.
 
Upvote 0
Hi Oliver - it is confusing (to me anyway) - can you install XL2BB and then use it to post your data in a format we can look at? You get a link to XL2BB from the link above the reply area.



111111.png



222222222222.png




I don't really understand the XL2BB so I have screenshotted my userform.

At the moment I have programmed one form for each discipline (Mechanical, Electrical and Mechanical and Electrical)

What I hope to achieve is after the first two combo boxes have been selected then the drawing numbers displayed are to represent what has been chosen

the numbering system works like so

Mechanical Proposed M101....
Mechanical Existing MX101....

If "M" and "Prop" are chosen only M numbers are shown
If "M" and "Exist" are chosen only MX numbers are shown

M&E Proposed ME201....
M&E Existing MEX201.....

If "M&E" and "Prop" are chosen only ME numbers are shown
If "M&E" and "Exist" are chosen only MX numbers are shown

Electrical Proposed E301....
Electrical Existing EX301....

If "E" and "Prop" are chosen only E numbers are shown
If "E" and "Exist" are chosen only EX numbers are shown


I hope I have managed to simplify what I am asking

Oliver










 

Attachments

  • 222222222222.png
    222222222222.png
    65.6 KB · Views: 6
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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