Ask Your Question

combobox value depend from another combobox

asked 2018-01-11 16:00:19 +0200

Fede gravatar image

updated 2018-01-12 14:56:02 +0200

Ratslinger gravatar image

Hi! I have 2 combobox:

the first combobox has as item "Red" e "Green"

the second combobox has as item:

-> "Fire" and "Blood", if the text in first combobox is "Red"

-> "Tree", if the text in first combobox is "Green"

In your opinion, is it possibile established this relation between the two combobox?

Thank you

SO: Win7 - 10

LO: 5.3 e 5.4

Sorry I hope that with this picture the problem is more clear


edit retag flag offensive close merge delete



Your question makes little sense. You have 2 combo boxes. The first has 2 items in it - 'Red' & 'Green' The next statement is utterly confusing. What is in the second combo box. You state 'if the text in first combobox' twice in same statement. Where did 'Tree' come from? Make this simple. State what is in #1 & what in #2 combo box. Then if selection in #1 what do you expect in #2? What is the basis for this choice? What is the purpose of second combobox?

Ratslinger gravatar imageRatslinger ( 2018-01-11 17:48:15 +0200 )edit

Look into the initial formatting of the question (by editing it) - it makes it clearer :)

Mike Kaganski gravatar imageMike Kaganski ( 2018-01-12 14:38:59 +0200 )edit

Thanks Mike. Had not thought that the case. Will fix.

Ratslinger gravatar imageRatslinger ( 2018-01-12 14:50:05 +0200 )edit

@Mike: I don't know how to formatting the text, can you tell me where is a guide about it?

Fede gravatar imageFede ( 2018-01-12 15:49:29 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2018-01-12 14:28:35 +0200

Ratslinger gravatar image


You can do this with an Index or Lookup. See the answers in this post.

edit flag offensive delete link more


With the combobox is not possible?

Fede gravatar imageFede ( 2018-01-12 15:47:52 +0200 )edit

Yes, but it requires writing macros specific to what you are doing.

Ratslinger gravatar imageRatslinger ( 2018-01-12 15:52:06 +0200 )edit

Yes, yes I need to improve my knowledge about macros, can You help me in any way? :)

Fede gravatar imageFede ( 2018-01-13 09:53:25 +0200 )edit

Maybe. First need to know precisely what you are attempting. Selection in first, what is in first, where did it come form, same for second. What is to be done after second one selected? This may only be a start. Coding is precise.

Ratslinger gravatar imageRatslinger ( 2018-01-13 15:02:29 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-01-11 16:00:19 +0200

Seen: 211 times

Last updated: Jan 12 '18