Do you get an error on this line?
lastrow = Cells.find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Change your code to
Sub manueltaskekle()
Dim z
Dim x
Dim myvalue As Long
a = UserForm1.TextBox6.Text
If Sheet1.Cells(1, 1) = "" Then
Sheet1.Cells(1, 1) = a
Else
z = Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Row
If myvalue = Application.Match(a, worksheet1.Range("A1:A1000"), EntireColumn) Then
MsgBox (a) & " Listeye ekli."
Else
Sheet1.Cells(z + 1, 1).Value = a
End If
End If
End Sub
Bookmarks