combo box help

Acehole

Board Regular
Joined
Sep 29, 2009
Messages
249
hello all,
i have a combo box that i select a number from 1 to 10.
this number is then linked to cell d9.
what i need is when the number is selected, lets say 4. excel looks at d9 and associates another action with that number value.
so d9 says number 4 this then opens up another sheet on excel(say sheet 4), when number 2 is entered it selects another worksheet (sheet 2). etc etc. this is where i will put other information, how do i make it make that link for me.

thanks
 

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.
Where is your ComboBox and where is it from - Control Toolbox or Forms Toolbar? A solution will require VBA code. Is that OK?
 
Upvote 0
hello, andrew good of you to reply, thanks.
apologies for the scant information still very much a novice.

the box is via insert-active x control.
it is on sheet 1 the numbers are selected via a range called numbers on sheet 2. apologies if this doesnt clarify what you needed to know to enable you to help me.
 
Upvote 0
Something along the lines of

Private Sub ComboBox1_Change()
Sheets("sheet" & ComboBox1).Activate
End Sub
 
Upvote 0
thanks for the reply,
however i am a real dummy at this where would i have to put the code for any of it to work.
 
Upvote 0
Enter design mode. Select your combo box, right-click and you should get a dialogue. About halfway down you should see a " View Code" option
 
Upvote 0
thanks
I did that and entered the code but got subscript out of range?
I guess it is waiting for information to be added or the correct information.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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