date stamp and time stamp

ace_silver10

New Member
Joined
Sep 22, 2008
Messages
48
Hey,

Im running an occurance log and im wanting to automatically time stamp and entry.

A1A2A3A4A5
"Date stamp""Time Stamp"Date validation list "Subject"The actual log descriptionData validation list "Name"

<tbody>
</tbody>

What I am wanting is for A1 and A2 to automatically populate, and be editable if the entry is late, when I add data in either A3, A4 or A5; this will be on multiple rows too. Id like VBA but willing to try anything

Cheers guru's
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try something like this.... if columns 3,4 or 5 are updated a change will occur in Columns 1 and 2 that updates the date and time:

Code:
[COLOR=#0000ff]Private Sub[/COLOR] Worksheet_Change([COLOR=#0000ff]ByVal[/COLOR] Target [COLOR=#0000ff]As[/COLOR] Range)
[COLOR=#008000]    'This code goes in the worksheet module[/COLOR]
 [COLOR=#0000ff]   If [/COLOR]Target.Column = 3 [COLOR=#0000ff]Or [/COLOR]Target.Column = 4 [COLOR=#0000ff]Or[/COLOR] Target.Column = 5 [COLOR=#0000ff]Then[/COLOR]
        Cells(Target.Row, 1) = Date[COLOR=#008000] 'This will be entered in column 1[/COLOR]
        Cells(Target.Row, 2) = Time [COLOR=#008000]'This will be entered in column 2[/COLOR]
[COLOR=#0000ff]    End If[/COLOR]
[COLOR=#0000ff]End Sub[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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