I have a problem as follows,
in my medicine prescription userform I have 4 combobaxes containing medicine names,
combobox1 is populate with col A in sheet 1,
combobox2 is populate with col B in Sheet 1,
combobox3 is populate with col C in sheet 1 and
combobox4 is populate with col D in sheet 1.
at sheet1:
in Col A data of medicine entered which cannot be mixed with Col B.
in Col B data of medicine entered which cannot be mixed with Col C.
in Col C data of medicine entered which cannot be mixed with Col D.
but
in Col D data of medicine entered which can be mixed with Col A.
in Col B data of medicine entered which can be mixed with Col D.
How it is coded in vba that:
If I select two opposite medicine from comboboxes it warns me with a msg: with names of both medicine selected from two comboboxes and say "you can not select two different temperament medicines, please select similar supporting medicine."
I wish that any excel master can solve this problem...
Hk. Riaz Hussain
in my medicine prescription userform I have 4 combobaxes containing medicine names,
combobox1 is populate with col A in sheet 1,
combobox2 is populate with col B in Sheet 1,
combobox3 is populate with col C in sheet 1 and
combobox4 is populate with col D in sheet 1.
at sheet1:
in Col A data of medicine entered which cannot be mixed with Col B.
in Col B data of medicine entered which cannot be mixed with Col C.
in Col C data of medicine entered which cannot be mixed with Col D.
but
in Col D data of medicine entered which can be mixed with Col A.
in Col B data of medicine entered which can be mixed with Col D.
How it is coded in vba that:
If I select two opposite medicine from comboboxes it warns me with a msg: with names of both medicine selected from two comboboxes and say "you can not select two different temperament medicines, please select similar supporting medicine."
I wish that any excel master can solve this problem...
Hk. Riaz Hussain