DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub mesaj()
Dim i As Long, msj As String, k As Byte, sahis As String, msg2 As String
Dim var As Boolean
With Sheets("gün")
For i = 2 To .Cells(65536, "A").End(xlUp).Row
var = False
sahis = "": msg2 = ""
For k = 2 To 6
If .Cells(i, k).Value = .Range("J1").Value Then
sahis = "Şahıs : " & .Cells(i, "A").Value & " "
msg2 = msg2 & vbTab & .Cells(1, k).Value
var = True
End If
Next k
msg2 = sahis & " " & msg2
If var = True Then msj = msj & vbLf & msg2
Next i
End With
MsgBox msj
End Sub
Sub Auto_Open()
[j1] = Format(Now, "dd.mm.yyyy")
For Each x In Range("b2:f" & [a65536].End(3).Row)
If Format(Date, "dd.mm.yyyy") = Format(x, "dd.mm.yyyy") Then
a = a & vbLf & "Bugün " & x & " " & Cells(x.Row, "a") & " nolu şahıs için uyarı: " & Cells(1, x.Column)
End If
Next
MsgBox a
End Sub