Macro to capture timing
Closed
Surya prakash
-
Jul 21, 2011 at 01:18 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jul 28, 2011 at 01:17 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jul 28, 2011 at 01:17 PM
Related:
- Macro to capture timing
- Logitech capture download - Download - Video recording and streaming
- Spell number in excel without macro - Guide
- How to change time in whatsapp - Guide
- Winavi video capture - Download - Video recording and streaming
- The attempt to obtain an ip timed out - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Jul 22, 2011 at 05:27 PM
Jul 22, 2011 at 05:27 PM
Jul 24, 2011 at 01:33 PM
I have few things that needs to be updated from that macro.
1) When I run the macro it is capturing the time correct. But it is considering the last empty cell. For example: In my Macro Start time is updated in cell C and end time in cell D, cell E will capture the minutes of time taken by employee (i.e. cell C - cell D). If I update the formula in cell E, time is not captured in cell C & cell D. Macro is considering the empty cell next to the cell which has a value. can u please modify this particular code for me.
2) In this macro that start time and time time has the same code. But in my request, there will be two command buttons (START TIME & END TIME). When I click on start time it should capture the time in the cell which has a start time. When I click on end time it should capture the time in the cell which has a end time.
3) When the time is captured spreadsheet should be automatically saved and reenter should not be done. If the employee tries to change the time it should prompt for a password to be entered. (Spreadsheet password will be chosen by me)
4) The time should be captured only in the cell which has today's date. For example: we will consider the date July 25th. The data will be as [Start Time in Cell C] --> [End Time in Cell D] --> [break timing taken by employee in Cell E]. I will merge all these three columns and the Date july 25th will be updated. If today is july 25, the macro should capture the time only in the cells which has today's date. Macro should not allow the user to capture time in the previous dates & future dates columns.
5) If an employee is on leave on a particular date itshould capture as leave in those cells. (for example: if the employee is leave on july 24 & when we open the spreadsheet on july 25, the cells should be filled as leave on the cells which is blank).
Please help me Riz. This macro is a key for my promotion. I need to submit it as cristal clear as I can.
Waiting for ur answer
Jul 26, 2011 at 08:05 AM
for #2, you can modify the sub to pass a parameter to indicate if it is start time or end time and update the appropriate column accordingly
for #3, again read the thread,
for #4, from what I see, you are saying that start time is in C and end time is in D, where is date in the picture ?
for #5, how one would say that employee is on leave
Jul 28, 2011 at 11:39 AM
Jul 28, 2011 at 01:17 PM