I am trying to compare a date to an internal array of dates that represent holidays.
I want to check if the date is a holiday or not.
My code is
holiday_fnd = Application.VLookup(process_date, holiday_arr, 1, false)
if iserror(holiday_fnd) then ' not a holiday
do something
else
do something else
end if
process_date is defined as date, holiday_arr is an array
For every process_date I get error 2042 (not found).
Bookmarks