I have a column of data,they r time value. The range format is "hh:mm:ss".
Here is my column A:
11:59:13
12:35:00
12:59:23
13:00:00
13:34:20
16:24:09
My VBA code is:
'-------------------------------------
sub Test()
'-------------------------------------
when the argument "What" is bigger than "13:00" then the Find() will not working ,runtime error. Any suggestions ?
Here is my column A:
11:59:13
12:35:00
12:59:23
13:00:00
13:34:20
16:24:09
My VBA code is:
'-------------------------------------
sub Test()
Dim x As Range
Set x = Range("a1").EntireColumn.Find(What:="12:59", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False)
MsgBox x.Address
end subSet x = Range("a1").EntireColumn.Find(What:="12:59", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False)
MsgBox x.Address
'-------------------------------------
when the argument "What" is bigger than "13:00" then the Find() will not working ,runtime error. Any suggestions ?