hi
currently I use this code for multiple textboxes(41,44,46,48,50,52,54,55,57,59,61) where are existed under LABLE(ITEM). and multiple comboboxes(2,6,10,14,18,22,26,30,34,38,42) .when I select any comboboxe where are existed under lable(CODE) will incerement the number . for instance when select combobox2 will give into textbox41 10 based on last number is existed in sheet BRANDS into Column A. the last number is 9 and then it gives 10 . it's ok but if I select combobox6 it will give the same value 10 in textbox44 . it should incerement based on textbox41 then the value become 11 not 10 . so what I want when select the first combobox as in combobox2 it will increment based on last value in column A as the code does ,but when move to next another combobox under the lable CODE should increment to next textbox under lable ITEM based on which precede textbox .
If ComboBox2 <> "" Then
ks = WorksheetFunction.CountA(Range("a2:a1000"))
TextBox41.Value = ks + 1
Else
TextBox41.Value = ""
End If
thanks in advance