Hi there,
Someone assist me in this code, where the entries of txtboxes go into the next availible open row:
Private Sub CmdAdd_Click()
LR = Cells(Rows.Count, "A").End(xlUp).Row + 1
Range("A" & LR) = txtPrin
Range("A" & LR + 1) = txtSpouse
Range("A" & LR + 2) = txtCh1
Range("A" & LR + 3) = txtCh2
Range("A" & LR + 4) = txtCh3
Range("A" & LR + 5) = txtCh4
Range("A" & LR + 6) = txtCh5
Range("A" & LR + 7) = txtCh6
End Sub
It is working perfectly, however I need txtTotal to go into the same Row as txtPrin but in Colum "I"
Hope someone can assist me in this
Kind regards
Joacro
Someone assist me in this code, where the entries of txtboxes go into the next availible open row:
Private Sub CmdAdd_Click()
LR = Cells(Rows.Count, "A").End(xlUp).Row + 1
Range("A" & LR) = txtPrin
Range("A" & LR + 1) = txtSpouse
Range("A" & LR + 2) = txtCh1
Range("A" & LR + 3) = txtCh2
Range("A" & LR + 4) = txtCh3
Range("A" & LR + 5) = txtCh4
Range("A" & LR + 6) = txtCh5
Range("A" & LR + 7) = txtCh6
End Sub
It is working perfectly, however I need txtTotal to go into the same Row as txtPrin but in Colum "I"
Hope someone can assist me in this
Kind regards
Joacro