IsHoliday, SchedulerCmdTarget Function

Syntax

IsHoliday(_dt)

Description

This function allows you to verify whether a date has been set as a holiday in the scheduler object. You need to pass a "date" parameter to this function where only the day and month will be considered.

 

Parameter

Description

_dt as date

Date to be removed from the holiday list.

 

Result

Boolean

 

Example:

Option Explicit

Public Sub Click()

Dim SchedObj As SchedulerCmdTarget

Set SchedObj = GetScheduler("Sched1")

If Not SchedObj Is Nothing Then

MsgBox "Is Holiday = " & CStr(SchedObj.IsHoliday(Now)),vbOkOnly,GetProjectTitle

End If

Set SchedObj = Nothing

End Sub

 

See Also