It's not very good code to be copying. It selects unnecessarily & has a variable lRowNum which it doesn't use.Try this
Private Sub cmdOK_Click()
Dim sData As String
Dim lRowNum As Long
With ActiveWorkbook.Sheets("Data")
lRowNum = .Cells(1, 1).CurrentRegion.Rows.Count + 1
MsgBox lRowNum
.Cells(lRowNum, 1).Value = txtscp.Value
.Cells(lRowNum, 2).Value = txtproject.Value
.Cells(lRowNum, 3) = txtplasdesc.Value
.Cells(lRowNum, 4) = txtstraindesc.Value
.Cells(lRowNum, 5) = txthoststrain.Value
.Cells(lRowNum, 6) = txtown.Value
.Cells(lRowNum, 7) = txtlbref.Value
.Cells(lRowNum, 8) = txtantisen.Value
.Cells(lRowNum, 9) = txtrecmed.Value
.Cells(lRowNum, 10) = txtnovials.Value
.Cells(lRowNum, 11) = txtloc.Value
End With
End Sub
Bookmarks