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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,390
Messages
5,836,978
Members
430,464
Latest member
nickburrett

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
Top