If statements with combo boxes

bynummustang

New Member
Joined
May 2, 2011
Messages
2
Alright guys, I know NOTHING about VBA code, and I have to write a spreadsheet. I know some basic programming (took Fortran back in 2009) so I know the flow of how to get something to be layed out, but the VBA specific code I don't know.

Basically this is what I'm trying to do:
Have a combo box with 5 options. Based on which option is selected, it will populate another combo box with 5-9 more choices. Based on the options selected in both combo boxes, it will then be linked to .pdf which will be hosted on a local server.

IF COMBOBOX_1 = "OPTION 1" THEN
*BRING UP COMBOBOX 2 (BASED OFF OF COMBO BOX 1 SELECTION)*

ELSEIF COMBOBOX_1 = "OPTION 2" THEN
*BRING UP COMBOBOX 2 (BASED OFF OF COMBO BOX 1 SELECTION)*

And have that kind of code for the 5 options in my first combo box. Then use a differnt if statement to bring up a certain .pdf based on the two selections.

Any help would be greatly appriciated.

Thanks,

Jordan
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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