DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Workbook_Open()
On Error Resume Next 'Hata varsa sonraki satıra geç
bulunan = "" 'bulunan değişkenini sıfırla
bul = Range("B1:B1000").Find(Date + 3).Row 'bugünkü tarihe ait hatırlatma satırını bul.
If bul > 0 Then 'eğer bir hatırlatma bulunur ise
With Range("B1:B1000") 'b1:b100 alanı boyunca
Set c = .Find(Date + 3) 'c ye arama sonucunu sabitle
If Not c Is Nothing Then 'eğer arama sonucu olumlu ise
firstAddress = c.Address 'ilk bulunanın adresini al
Do
bulunan = bulunan & Cells(c.Row, 1) & " --> " & c.Text & Chr(13)
'bulunan değerleri biriktir.
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
'kayıt bulunduğu ve bulunan adres ilk adresten farklı olduğu müddetçe
'döngü devam etsin
End If
End With
If bulunan = "" Then GoTo atla1
MsgBox bulunan, vbInformation, "Hatırlanması Gerekenler 3 GÜN KALANLAR"
'bulunanı mesaj olarak göster
End If
atla1:
'-----------------------------------------------------------------------------------------
On Error Resume Next 'Hata varsa sonraki satıra geç
bulunan = "" 'bulunan değişkenini sıfırla
bul = Range("B1:B1000").Find(Date + 2).Row 'bugünkü tarihe ait hatırlatma satırını bul.
If bul > 0 Then 'eğer bir hatırlatma bulunur ise
With Range("B1:B1000") 'b1:b100 alanı boyunca
Set c = .Find(Date + 2) 'c ye arama sonucunu sabitle
If Not c Is Nothing Then 'eğer arama sonucu olumlu ise
firstAddress = c.Address 'ilk bulunanın adresini al
Do
bulunan = bulunan & Cells(c.Row, 1) & " --> " & c.Text & Chr(13)
'bulunan değerleri biriktir.
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
'kayıt bulunduğu ve bulunan adres ilk adresten farklı olduğu müddetçe
'döngü devam etsin
End If
End With
MsgBox bulunan, vbInformation, "Hatırlanması Gerekenler 2 GÜN KALANLAR"
'bulunanı mesaj olarak göster
End If
'-------------------------------------------------------------------------------------------
On Error Resume Next 'Hata varsa sonraki satıra geç
bulunan = "" 'bulunan değişkenini sıfırla
bul = Range("B1:B1000").Find(Date + 1).Row 'bugünkü tarihe ait hatırlatma satırını bul.
If bul > 0 Then 'eğer bir hatırlatma bulunur ise
With Range("B1:B1000") 'b1:b100 alanı boyunca
Set c = .Find(Date + 1) 'c ye arama sonucunu sabitle
If Not c Is Nothing Then 'eğer arama sonucu olumlu ise
firstAddress = c.Address 'ilk bulunanın adresini al
Do
bulunan = bulunan & Cells(c.Row, 1) & " --> " & c.Text & Chr(13)
'bulunan değerleri biriktir.
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
'kayıt bulunduğu ve bulunan adres ilk adresten farklı olduğu müddetçe
'döngü devam etsin
End If
End With
MsgBox bulunan, vbInformation, "Hatırlanması Gerekenler 1 GÜN KALANLAR"
'bulunanı mesaj olarak göster
End If
'-------------------------------------------------------------------------------------------
On Error Resume Next 'Hata varsa sonraki satıra geç
bulunan = "" 'bulunan değişkenini sıfırla
bul = Range("B1:B1000").Find(Date).Row 'bugünkü tarihe ait hatırlatma satırını bul.
If bul > 0 Then 'eğer bir hatırlatma bulunur ise
With Range("B1:B1000") 'b1:b100 alanı boyunca
Set c = .Find(Date) 'c ye arama sonucunu sabitle
If Not c Is Nothing Then 'eğer arama sonucu olumlu ise
firstAddress = c.Address 'ilk bulunanın adresini al
Do
bulunan = bulunan & Cells(c.Row, 1) & " --> " & c.Text & Chr(13)
'bulunan değerleri biriktir.
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
'kayıt bulunduğu ve bulunan adres ilk adresten farklı olduğu müddetçe
'döngü devam etsin
End If
End With
MsgBox bulunan, vbInformation, "Hatırlanması Gerekenler SON GÜN"
'bulunanı mesaj olarak göster
End If
End Sub