Time Stamp Macros

the cat

New Member
Joined
Jul 8, 2008
Messages
1
<HR style="COLOR: #d1d1e1" SIZE=1><!-- / icon and title --><!-- message -->I have an average knowledge of excel and [COLOR=blue! important][COLOR=blue! important]vba[/COLOR][/COLOR] as I am teaching myself how to use both by following the code and applying logic. However I am trying to create a time sheet.

So far I have Columns
|Start Time|Finish Time| Task| Other| Volume|
Login/Log Out|
Activity|
Personal Time|

In the start and finish times I have button macros. I am trying to have it where Staff can only click on each button once so they cant manipulate when they start and finish tasks as they do now. When they click on the macros it places a time and date stamp below the button in the cell.

The code for the button macros are:

<!-- BEGIN TEMPLATE: bbcode_code -->Code:

Sub Rectangle1_Click() Range ("b2") = timeend sub​
</PRE>
<!-- END TEMPLATE: bbcode_code -->

However I have a problem, I have tried to record a macro as my vba knowledge is very basic so that the value is locked with the current time and cant be changed. I basically need to have a feature which will lock the current time and date in the start and finish times when the button is clicked by staff.

Id appreciate any help, Please
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,486
Messages
6,125,070
Members
449,205
Latest member
Healthydogs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top