Thread: Number to Time
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
kkknie[_196_] kkknie[_196_] is offline
external usenet poster
 
Posts: 1
Default Number to Time


Try:


Code
-------------------
tih = Selection
ActiveCell.Offset(0, 1).Select
tih2 = Selection
ActiveCell.Offset(0, 2).Select
tim = Selection
ActiveCell.Offset(0, 1).Select
tim2 = Selection
TimeIn = TimeSerial(tih & tih2, tim & tim2, 0
-------------------



--
kkkni
-----------------------------------------------------------------------
kkknie's Profile: http://www.excelforum.com/member.php...nfo&userid=754
View this thread: http://www.excelforum.com/showthread.php?threadid=26549