Public Function Calc_Date() As Boolean
Dim LValue As Integer
myDay = 24
myMonth = 10
myYear = Year(Now())
Do
myDay = myDay + 1
LValue = DatePart("w", myDay & "/" & myMonth & "/" & myYear, vbMonday, vbFirstJan1)
Loop Until LValue = 7
If Trim$(Date) = myDay & "/" & myMonth & "/" & myYear Then
Calc_Date = True
Else
Calc_Date = False
End If
End Function
Public Function Calc_Hour() As Boolean
Dim LValue As Integer
myDay = 24
myMonth = 3
myYear = Year(Now())
If Len(myMonth) = 1 Then myMonth = "0" & myMonth
Do
myDay = myDay + 1
LValue = DatePart("w", myDay & "/" & myMonth & "/" & myYear, vbMonday, vbFirstJan1)
Loop Until LValue = 7
myHour = DatePart("h", myDay & "/" & myMonth & "/" & myYear, vbMonday, vbFirstJan1)
If Trim$(Date) = myDay & "/" & myMonth & "/" & myYear And myHour = 0 Then
Calc_Hour = True
Else
Calc_Hour = False
End If
End Function