Sub Sample() Dim time As String time = InputBox("時刻を入力してください(hh:mm:ss)") MsgBox TimeValue(time) End Sub