#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default TIME

THANKS FOR YOUR HELP IN ADVANCE.

I WANT A LITTLE WATCH / DIGITAL CLOCK TO APPEAR IF I TOUCH A CELL...WITH
THIS CLOCK, I WILL BE ABLE TO INSERT THE REQUIRED TIME INTO THE CELL I
TOUCHED....ANY SUGGESTIONS / CODE?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 772
Default TIME

if nobody has anything more elegant build a userform with 2 spin buttons and
a textbox and put this in the code, make it pop up on click event, and make a
button that changes activecell to value and close
Dim y As Long
Dim x As Long
Private Sub SpinButton1_SpinDown()
y = y - 1
TextBox1.Text = x & ":" & y
End Sub

Private Sub SpinButton1_SpinUp()
y = y + 1
TextBox1.Text = x & ":" & y
End Sub

Private Sub SpinButton2_SpinDown()
x = x - 1
TextBox1.Text = x & ":" & y
End Sub

Private Sub SpinButton2_SpinUp()
x = x + 1
TextBox1.Text = x & ":" & y
End Sub

Private Sub UserForm_Activate()
x = Hour(Now())
y = Minute(Now())
TextBox1.Text = x & ":" & y
End Sub


--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Ronel" wrote:

THANKS FOR YOUR HELP IN ADVANCE.

I WANT A LITTLE WATCH / DIGITAL CLOCK TO APPEAR IF I TOUCH A CELL...WITH
THIS CLOCK, I WILL BE ABLE TO INSERT THE REQUIRED TIME INTO THE CELL I
TOUCHED....ANY SUGGESTIONS / CODE?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time calculations for Scheduled Time vs. Actual Time Worked The Caterer Excel Discussion (Misc queries) 1 November 29th 09 08:08 AM
straight time, time and a half, and double time Jeremy Excel Discussion (Misc queries) 3 September 23rd 08 09:03 PM
Calculate Ending time using Start Time and Elapsed Time Chief 711 Excel Worksheet Functions 5 May 13th 08 04:34 PM
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 02:36 PM


All times are GMT +1. The time now is 05:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"