- Katılım
- 26 Eylül 2020
- Mesajlar
- 171
- Excel Vers. ve Dili
- excel 2019 pro.Türkçe
- Altın Üyelik Bitiş Tarihi
- 26-09-2021
Aşağıdaki kod ile excel sayfasına açıklama ekliyorum.Textbox3'de tarih,textbox2'de isim var.İlgili tarih ve isim seçildiğinde textbox7'deki açıklama sayfadaki B" sütunundaki ilgili hücreye ekleniyor."A" sutununda isimler var.Yapmak istediğim textbox2 ve 3 'deki kritere göre ilgili açıklamayı silmek.Yardımcı olacak arkadaşa Teşekkür ederim.
trh = TextBox3
ara = TextBox2
deg = TextBox7
If deg = "" Then
MsgBox "Önce Açıklama Girin", vbInformation
Exit Sub
End If
Set c = [A:A].Find(ara, , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
If Cells(c.Row, "B") = trh Then
Cells(c.Row, "B").ClearComments
Cells(c.Row, "B").AddComment
Cells(c.Row, "B").Comment.Text Text.Delete
Cells(c.Row, "B").Comment.Text Text:=deg
S = 1
End If
Set c = [A:A].FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
If S = 1 Then
MsgBox "Açıklama Eklendi", vbInformation
Else
MsgBox "Veri Bulunamadı", vbInformation
End If:
trh = TextBox3
ara = TextBox2
deg = TextBox7
If deg = "" Then
MsgBox "Önce Açıklama Girin", vbInformation
Exit Sub
End If
Set c = [A:A].Find(ara, , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
If Cells(c.Row, "B") = trh Then
Cells(c.Row, "B").ClearComments
Cells(c.Row, "B").AddComment
Cells(c.Row, "B").Comment.Text Text.Delete
Cells(c.Row, "B").Comment.Text Text:=deg
S = 1
End If
Set c = [A:A].FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
If S = 1 Then
MsgBox "Açıklama Eklendi", vbInformation
Else
MsgBox "Veri Bulunamadı", vbInformation
End If: