Hi all,
I have been trying to solve the following problem but its seems to be that its not transfering the DayofWeek(Weekday(Now())) numeric value as a number but as a string. I have tried to convert into a number by ising CINT and CDbl but both don't seem to work. Does anyone have any ideas. The script sample is below.
Quote:
DayNumberLoop = DayofWeek(Weekday(Now()))
If InStr(strdata,DayofWeek(CINT(DayNumberLoop))) = 0 then
DayNumberLoop = DayNumberLoop+1
If DayNumberLoop > 7 then
DayNumberLoop = 1
End If
End If
|
Thanks
Graham
Use you brain, not your brawn!