Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In article , GS writes
Sorry Colin, I forgot to copy/paste the revised function! 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 Sorry - here's the whole of the code I'm trying to fit yours into ; Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo stoppit Application.EnableEvents = False If Me.Range("D4").Value < "" Then With Sheets("ShareSheet") .Unprotect Password:="password" .Range("A21").Value = "Last Updated : " & Format(Now, " dddd dd/mm/yy at hh:mm:ss") stoppit: Application.EnableEvents = True .Protect Password:="password" End With End If End Sub I should have sent it before. It will make the picture clearer. Best Wishes |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How would you include an existing logo in a worksheet? | Excel Discussion (Misc queries) | |||
Formatting worksheets, existing and new, in existing workbooks | Excel Discussion (Misc queries) | |||
download existing spreadsheets into another existing spreadsheet | Excel Discussion (Misc queries) | |||
Extending Row() | Excel Worksheet Functions | |||
Can inserted rows automatically include existing worksheet formula | Excel Discussion (Misc queries) |