Im new to Visual Basics, all i know is from reading a few help
website...
im from israel, and i want to make a function that tell's me if a
specific date is a holiday.
the problem is that hebrew holidays go only by hebrew dates, and
hebrew dates are strings in hebrew...
i downloaded a function for excel that turns a numeric like
2/10/2006 to a hebrew date (a string).
and i cant seem to use it in my function, and i dont know why.
thanx for the help
What i put in the Excel cell: =holiday("2/10/2006")
The Function:
Public Function holiday(NumDate) As String
Dim HebDate As String
HebDate = WorksheetFunction.HebrewDate(NumDate)
Hanuca = "hello"
If HebDate = Hanuca Then holiday = True Else holiday = False
End Function
i just tried to see if it works, by what i understand im suppose to
get "False" in Excel, and what i get instead is #VALUE!