Extending existing coding to include new parameters
In article , GS writes
Geez.., did it again! Revise function in previous reply to...
Function Get_ShopOpenStatus(CurrentTime As Variant) As String
Dim vShopOpens, vShopCloses
vShopOpens = TimeValue("8:00 AM")
vShopCloses = TimeValue("4:30 PM")
If CurrentTime vShopOpens And CurrentTime < vShopCloses Then _
Get_ShopOpenStatus = "open." Else Get_ShopOpenStatus = "closed."
End Function
Hi Garry
OK that's fixed it. Working perfectly.
Thanks again for your time and considerable expertise.
Best Wishes
Colin
|