• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Auto add date once

Ray

New Member
Hello, I'm trying to figure out how to use the current date automatically only once for a estimate quote sheet


I want to make out a quote with a 30 day expiry, right now if I make a quote and save it, reviewing it would change the saved date to the current date.


I hope I'm making sense, the formula I currently use is =TODAY()


Thanks

Ray
 
I think you will have to use copy/paste and paste with special selection of VALUE. You can use a macro to do this when you create your original quote the first time. Upon subsequent modifications to that quote, do not run the macro. Using my method, you would need three cells located somewhere in your workbook.


If the Date you want displayed on your quote is in cell A2. Today's date is in cell E2. and the Original date is in F2.


A2 formula is
Code:
=F2

E2 formula is [code]=Today()

F2 has no formula, but make sure you format the cell to a Date format that you wish to use.

Then create this macro

[pre]Sub copy_date()

' Selects today's date from the original quote and pastes to a cell so it doesn't update later.

Sheets("Sheet1").Range("E2").Copy
Sheets("Sheet1").Range("F2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub[/code][/pre]
 
Hi, Ray!


First of all welcome to Chandoo's website Excel forums. Thank you for your joining us and glad to have you here.


As a starting point I'd recommend you to read the three first green sticky topics at this forums main page. There you'll find general guidelines about how this site and community operates (introducing yourself, posting files, netiquette rules, and so on).


Among them you're prompted to perform searches within this site before posting, because maybe your question had been answered yet.


Feel free to play with different keywords so as to be led thru a wide variety of articles and posts, and if you don't find anything that solves your problem or guides you towards a solution, you'll always be welcome back here. Tell us what you've done, consider uploading a sample file as recommended, and somebody surely will read your post and help you.


Regards!
 
Back
Top