Date Stamp In Excel on a different sheet

rob_bob

New Member
Joined
Apr 16, 2011
Messages
5
Could some one please help,

I need to enter a number in a cell that then auto stamps the date in another cell on a different sheet.

All the VB code I can find only puts the date on the same sheet.

Plese help:confused:

Thanks Rob
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What cell and sheet (sheet name) do you enter the number in, and what cell and sheet do you want the date stamp in?
 
Upvote 0
Thanks...

Sheet name Name where I enter the number "Master Data" Cell A1

Sheet name where I want the date stamp "Master Data Date" Cell A1

Cheers

Rob:)
 
Upvote 0
Select the sheet Master Data. Right-click on the sheet tab and select 'View Code'. Then paste the code below into the white space on the VB editor that opens. Close the editor and save the file. Test by changing cell A1 in the Master Data sheet.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("A1"), Target) Is Nothing Then
    With Sheets("Master Data Date").Range("A1")
        .Value = Date
    End With
End If

End Sub
 
Upvote 0
This code works great,

Is there anyway though that I can change it a little so that if i write a number anywhere in row A it stamps the date in the mirrored cell on the sheet called Master Data Date, For example when i populate cell A22 it stamps the date in A22 on the Master Data Date sheet or if was to populate A55 it stamps A55 on the Master Data Date sheet

Thanks

Rob :confused:
 
Upvote 0
This code works great,

Is there anyway though that I can change it a little so that if i write a number anywhere in row A it stamps the date in the mirrored cell on the sheet called Master Data Date, For example when i populate cell A22 it stamps the date in A22 on the Master Data Date sheet or if was to populate A55 it stamps A55 on the Master Data Date sheet

Thanks

Rob :confused:
try this:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Rows(1), Target) Is Nothing Then
    With Sheets("Master Data Date").Cells(1, Target.Column)
        .Value = Date
    End With
End If

End Sub
 
Upvote 0
This works but only puts the date stamp in cell A1,

I need it to sort of mirror the cell in the sheet where i have entered the value.

for example if i put a number in cell A4 it needs to put the date in cell a4 on the sheet master data date.

Thanks mate!!

Rob
 
Upvote 0
This works but only puts the date stamp in cell A1,

I need it to sort of mirror the cell in the sheet where i have entered the value.

for example if i put a number in cell A4 it needs to put the date in cell a4 on the sheet master data date.

Thanks mate!!

Rob
The code I posted in Post #7 does the mirroring for me. Please ensure you use that code. Replace what you have now with it.
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

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