- Katılım
- 24 Şubat 2009
- Mesajlar
- 1,077
- Excel Vers. ve Dili
- 2016
- Altın Üyelik Bitiş Tarihi
- 01-03-2023
Merhaba arkadaşlar; Yaklaşık 100 adet aracımızın Sigorta günü için aşağıdaki kodu siteden aldım, ancak, bu kodla 1 ay öncesinden hatırlatmasını istiyorum, bu kod sadece günü gelince haber ediyor nasıl bir değişiklik yapabiliriz Herkese teşekkürler.
Kod:
Private Sub Workbook_Open()
On Error Resume Next
bulunan = ""
bul = Range("L3:L100").Find(Date).Row
If bul > 0 Then
With Range("L3:L100")
Set c = .Find(Date)
If Not c Is Nothing Then
firstAddress = c.Address
Do
bulunan = bulunan & Cells(c.Row, 2) & " Plakalı Aracın Son Sigorta tarihi ==> " & c.Text & Chr(13)
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
MsgBox bulunan, vbInformation, "UYARI LİSTEDEKİ ARAÇLARIN SİGORTA DURUMU"
End If
End Sub