hi David and Simon
i change this code
from this
With WS
n = Application.Match(CLng(Me.ComboBox1.Value), .Range("A:A"), 0)
.Cells(n, 1).Value = Me.trmn.Text
bEdit = True
.Cells(n, 2).Value = Me.days.Text
.Cells(n, 3).Value = UCase(Me.txtFName.Text)
.Cells(n, 5).Value = Me.txtloan.Text
.Cells(n, 6).Value = Me.ptype.Text
.Cells(n, 14).Value = UCase(Me.txtLName.Text)
.Cells(n, 15).Value = Now
.Cells(n, 16).Value = Me.txtopen.Text
'clear the data
to this
With WS
n = Application.Match(CLng(Me.ComboBox1.Value), .Range("A:A"), 0)
bEdit = True
.Cells(n, 1).Value = Me.trmn.Text
.Cells(n, 2).Value = Me.days.Text
.Cells(n, 3).Value = UCase(Me.txtFName.Text)
.Cells(n, 5).Value = Me.txtloan.Text
.Cells(n, 6).Value = Me.ptype.Text
.Cells(n, 14).Value = UCase(Me.txtLName.Text)
.Cells(n, 15).Value = Now
.Cells(n, 16).Value = Me.txtopen.Text
'clear the data
and hallelujah it work the way intended
thanks for your help guys.
it really appreciated