I am a herbal medicine practioner, I made a excel program to help me in my trade. I need some help from excel vba masters that how can I do vba coding for following:

1) Sheet1 col A and B

Medicine | Tmp No |

Mohrak | 1 |

Molyen | 5 |

Shadeed | 1 |

Molyen | 1 |

Seelani | 6 |

Moqvee | 2 |

Taryaq | 2 |

Mohrak | 3 |

Moshel | 1 |

Akseer | 1 |

Moqvee | 1 |

Taryaq | 1 |

Jwarish Imli | 2 |

Hab Sabir | 3 |

Mohrak | 2 |

Shadeed | 2 |

Molyen | 2 |

Moshel | 2 |

Ojaee | 5 |

Atreefal | 1 |

Molyen | 3 |

Moshel | 3 |

Akseer | 3 |

Molyen | 6 |

Molyen | 4 |

Hazim | 5 |

Foladi | 5 |

Soosi | 5 |

Taryaq meda | 5 |

Akseer Itfaal | 2 |

Akseer Jigar | 4 |

Hab Mqvee Khas | 4 |

Akseer Jadeed | 4 |

Moqvee | 3 |

Taryaq | 3 |

Akseer | 2 |

Shadeed | 3 |

Molyen Khas | 5 |

Hab Shifa | 6 |

<colgroup><col><col></colgroup><tbody>

</tbody>

What I need is:

there are 8 Combo boxes (all populated with the col A sheet1, and a label.caption with combo box showing it Tmp No according to selection) on my Userform to select the medicine for a patient, but some medicines should not be mixed with each other according to there Tmp Numbers, for example:

Tmp No 1 can not be mixed with Tmp No 2 and 3.

Tmp No 2 can not be mixed with Tmp No 1, 5 and 6.

Tmp No 3 can not be mixed with Tmp No 6 and 1.

Tmp No 5 can not be mixed with Tmp No 3.

Tmp No 6 can not be mixed with Tmp No 2 and 4

Tmp No 1 can not be mixed with Tmp No 2 and 3.

Tmp No 2 can not be mixed with Tmp No 1, 5 and 6.

Tmp No 3 can not be mixed with Tmp No 6 and 1.

Tmp No 5 can not be mixed with Tmp No 3.

Tmp No 6 can not be mixed with Tmp No 2 and 4

If I select medicine of two different Temperaments from any comboboxes in userform then warning alert message show an alert "Do not mix these medicines".

Please help in this matter to solve my problem.

Thanks