Hi Guys can you help me regarding this problem I have a excel vba macr
but when itried to run in different operating system my function won'
change
here's my code:
Private Sub holidate(xhdate As Date) ' to compute if date entered i
Holiday
Dim crowval As Byte
With Worksheets("Sheet2").Range("A1:A30")
Set Holivalue = .Find(xhdate, LookIn:=xlValues, MatchCase:=False)
' .FIND METHOD WON'T WORK IN WINDOWS 98 OS I DON'T KNOW WHY?
If Not Holivalue Is Nothing Then
If Holivalue = xhdate Then
xholid = True
crowval = Holivalue.Row
xcomval = Worksheets("Sheet2").Cells(crowval, 2)
End If
Else
xholid = False
End If
End With
End Sub
Hope you help me guys regarding this eerie problem Thanks :
--
Cybe
-----------------------------------------------------------------------
Cyber's Profile:
http://www.excelforum.com/member.php...fo&userid=1580
View this thread:
http://www.excelforum.com/showthread.php?threadid=27305