You can extract the hour, minute or second:
With ActiveSheet.range("B10")
MsgBox Hour(.Value) & vbLf & _
Minute(.Value) & vbLf & _
Second(.Value)
End With
roshinpp_77 wrote:
HI friends,
Could anyone tell me how to extract first two digits of a "Time
value"
For example in cell B10 the content is 12:00 ie..(Time)
I am not able to extract "12" ie the first two digits of that time.
I am getting 0.5013 when taken as text.
Regards,
TIA
Roshin
--
roshinpp_77
------------------------------------------------------------------------
roshinpp_77's Profile: http://www.excelforum.com/member.php...o&userid=34924
View this thread: http://www.excelforum.com/showthread...hreadid=569321
--
Dave Peterson