arkadaşlar STr olarak denedim olmadı.kodlar aşağıda
Private Sub CommandButton1_Click()
Dim c As Range
Dim SonSat As Long
Sheets("A").Select
Set c = Range("A:A").Find(TextBox1.Value, LookIn:=xlValues)
If Not c Is Nothing Then
Cells(c.Row, "D") = CDate(TextBox2.Value)
Else
Evet = MsgBox("Aranan Değer Bulunamadı, Sona Ekleyim mi?", vbYesNo)
SonSat = [A65536].End(3).Row + 1
If Evet = vbYes Then
Cells(SonSat, "A") = TextBox1.Value
Cells(SonSat, "D") = CDate(TextBox2.Value)
End If
End If
End Sub
Private Sub UserForm_Click()
End Sub
Private Sub CommandButton1_Click()
Dim c As Range
Dim SonSat As Long
Sheets("A").Select
Set c = Range("A:A").Find(TextBox1.Value, LookIn:=xlValues)
If Not c Is Nothing Then
Cells(c.Row, "D") = CDate(TextBox2.Value)
Else
Evet = MsgBox("Aranan Değer Bulunamadı, Sona Ekleyim mi?", vbYesNo)
SonSat = [A65536].End(3).Row + 1
If Evet = vbYes Then
Cells(SonSat, "A") = TextBox1.Value
Cells(SonSat, "D") = CDate(TextBox2.Value)
End If
End If
End Sub
Private Sub UserForm_Click()
End Sub
