Static Dates within Excel

Sarlou73

New Member
Joined
Aug 9, 2013
Messages
4
Hi, I wonder if you can help me?
I want to add a date into cell Q when adding data into cell N but I also want to ensure that that date remains static, so when the spreadsheet is re-opened the historic date remains. Also, I want to add a date to column E which will remain static. I have entered the formula = TODAY() but when I re-open the spreadsheet I lose the historic date. Can you please advise how I can do this?
Many thanks
Sarah
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi. Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 14 Then Target.Offset(, 3).Value = Date
End Sub
 
Upvote 0
Hi Thanks for this. I have pasted this into the VB module and it doesn't seem to be working? Can you please advise
 
Upvote 0
That has to go into the sheet's module, not a regular module, and macros must be enabled.
 
Upvote 0
Hi I am new to this and learning as I go along so you'll have to bear with me. I have saved this spreadsheet as a macro enabled workbook and also the module is within the spreadsheet underneath the microsoft excel objects. If I enter into column N and then run the macro nothing happens!
 
Upvote 0
The macro will run automatically but you have to put it it the sheet's code module. Right click the sheet's tab, select View Code then paste the code into the window that appears.
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

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