Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default How to create a time log sheet

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!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default How to create a time log sheet

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" wrote in message
ups.com...
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
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
how do I create a formula to add up time on a time sheet JR Crawdad Excel Worksheet Functions 3 February 17th 10 10:10 PM
trying to create a time sheet with clickable buttons tarabull Excel Discussion (Misc queries) 1 March 31st 09 08:39 PM
Create a time-tracking sheet in Excel Karl Excel Worksheet Functions 1 July 25th 08 12:46 PM
How to update a "master" spreadsheet every time I create a newworkbook or a new sheet [email protected] Excel Worksheet Functions 3 December 27th 07 09:04 PM
How to create a spread sheet for time [email protected] Excel Worksheet Functions 1 April 25th 07 04:14 PM


All times are GMT +1. The time now is 07:36 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"