PC Review


Reply
Thread Tools Rate Thread

How to create a time log sheet

 
 
Ram
Guest
Posts: n/a
 
      13th Sep 2007
Hi,

I want to create a time log sheet. This sheet has name of team
members, and 2 buttons.. Login and log out. On clicking log in the
=now() function should be called. "This should not change each time we
open the sheet, once the sheet is saved that value should remain."

On clicking log out the =now() should be called which should not be
changed. and based on the log in and log out time the duration logged
in should come up.

Please help me design this.

Thanks!!

 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      13th Sep 2007
Ram,

For the buttons, assign macro code like this to the drawing objects (if you are using drawing
objects):

Sub CheckIn()
Cells(ActiveCell.Row, 2).Value = Time
End Sub

Sub CheckOut()
Cells(ActiveCell.Row, 3).Value = Time
End Sub

These will put the time into columns B (In) and C (Out) of the currently selected row.

If you are use a commandbutton from the controls toolbox, you would need to use the click events:

Private Sub CommandButton1_Click()
CheckIn
End Sub


Private Sub CommandButton2_Click()
CheckOut
End Sub

--
HTH,
Bernie
MS Excel MVP


"Ram" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I want to create a time log sheet. This sheet has name of team
> members, and 2 buttons.. Login and log out. On clicking log in the
> =now() function should be called. "This should not change each time we
> open the sheet, once the sheet is saved that value should remain."
>
> On clicking log out the =now() should be called which should not be
> changed. and based on the log in and log out time the duration logged
> in should come up.
>
> Please help me design this.
>
> Thanks!!
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I create a formula to add up time on a time sheet JR Crawdad Microsoft Excel Worksheet Functions 3 17th Feb 2010 10:10 PM
trying to create a time sheet with clickable buttons tarabull Microsoft Excel Misc 1 31st Mar 2009 08:39 PM
Create a time-tracking sheet in Excel Karl Microsoft Excel Worksheet Functions 1 25th Jul 2008 12:46 PM
How to create a spread sheet for time JTScherer@gmail.com Microsoft Excel Worksheet Functions 1 25th Apr 2007 04:14 PM
create time sheet =?Utf-8?B?SW5kaWNh?= Microsoft Excel Misc 2 18th Oct 2004 07:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:33 PM.