here is a picture to help visualise what im trying to do.
im trying to get the system time, then getting time from the user from inputbox, then display the difference in a shapes text box and loop untill the timeleft = 0
code i have so far:
Code:
Sub RoundedRectangle1_Click()
Dim setTimer
Dim currentTime
Dim timeLeft As Single
setTimer = InputBox("Please enter a Time seperated by : eg. hr:min:sec")
currentTime = Time
timeLeft = setTimer - currentTime
With ActiveSheet.Shapes("Rounded Rectangle 1") _
.TextFrame.Characters.Text = ("& timeLeft &")
End With
End Sub
i have not included a loop yet i am just wanting to display the time difference, between the two times.