Belleke
Well-Known Member
Code:
Case Is = 1
T_00.Value = WorksheetFunction.Max([Nr_1]) + 1
Case Is = 2
T_00.Value = WorksheetFunction.Max([Nr_2]) + 1
Case Is = 3
T_00.Value = WorksheetFunction.Max([Nr_3]) + 1
Case Is = 4
T_00.Value = WorksheetFunction.Max([Nr_4]) + ?
Case Is = 5
T_00.Value = WorksheetFunction.Max([Nr_5]) + 1
My question is can this code shorter,