Hi, i have a userform where the input fields are copied to a worksheet.
Supposing i have 5 columns, a-serial number, b-debit code, c-debit amount, d-credit code, e-credit amount.
there are cases where the number of debit amount does not equal to the credit. Example: serial # 2018-001 has 1 debit amounting to 1,000 and 2 credits amounting to 500,500. The 2 credits are written as 2 rows and under only 1 serial number.
What i am doing is, i use the debit amount column to check the lastrow which works perfectly if both debit and credit has equal rows.
But when debit has 1 row and credit has 2 rows, my next transaction will add itself to the 1 blank cell in the previous debit.
Any workaround? I'm not so good in programming and I've been frustrated the whole day :/
Supposing i have 5 columns, a-serial number, b-debit code, c-debit amount, d-credit code, e-credit amount.
there are cases where the number of debit amount does not equal to the credit. Example: serial # 2018-001 has 1 debit amounting to 1,000 and 2 credits amounting to 500,500. The 2 credits are written as 2 rows and under only 1 serial number.
What i am doing is, i use the debit amount column to check the lastrow which works perfectly if both debit and credit has equal rows.
But when debit has 1 row and credit has 2 rows, my next transaction will add itself to the 1 blank cell in the previous debit.
Any workaround? I'm not so good in programming and I've been frustrated the whole day :/