想问一下,我可以在一个case语句下使用多条指令吗?不想使用if..then,因为我有超过7个条件。我想要做的是如果组合框的值为“this”,然后在正确的行插入新行,然后将组合框值添加到新创建的行中。这是示例:
Case ComboBox1.Value = "Venofix"
instruction 1 ~> count the number of row of "venofix"
instruction 2 ~> insert new row at the last row
instruction 3 ~> insert data from combobox
Case ComboBox1.Value = "Penofix"
instruction 1 ~> count the number of row of "penofix"
instruction 2 ~> insert new row at the last row
instruction 3 ~> insert data from combobox