Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default How to use Today's date in a cell and make it stay the same date

Hello all

I am working on a purchase order form in Excel 2003. On top of the sheet I
have a cell with the formulla =TODAY() which shows todays date on that cell.
Obviously this is not the correct code for what I need. If I open the file
tomorrow it will show me tomorrows date and thats not what I am after. Is
there a way to get todays date on that cell and make it permanent? For
example, I create a new sheet and automatically I get the date on top and no
matter when I open that sheet again, I get the date that I created that sheet.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default How to use Today's date in a cell and make it stay the same date

Hi;
There are several things you can do. However, if you just need to save the
file with the date when the sheet was created, simply enter the date over the
field and it will never change. In other words, overwrithe the formula with
the date you need and then save it.

Argy

"ADSK" wrote:

Hello all

I am working on a purchase order form in Excel 2003. On top of the sheet I
have a cell with the formulla =TODAY() which shows todays date on that cell.
Obviously this is not the correct code for what I need. If I open the file
tomorrow it will show me tomorrows date and thats not what I am after. Is
there a way to get todays date on that cell and make it permanent? For
example, I create a new sheet and automatically I get the date on top and no
matter when I open that sheet again, I get the date that I created that sheet.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default How to use Today's date in a cell and make it stay the same da

Argy;
Thank you for your quick reply. your solution is good however, The date cell
is locked and I would like to keep it that way so that no one can change
dates by mistake. I appologize for not mentioning this in the begining.

We created a purchase order form and use it everyday for projects we work
on. People at work order materials everyday and create a sheet for whatever
they order. What I would like to have is to let them create a new sheet and
automatically set the date to the date they created the sheet. Again, the
cell that shows the date is locked.

Thank you

Adsk

"Argy - Arcasoft" wrote:

Hi;
There are several things you can do. However, if you just need to save the
file with the date when the sheet was created, simply enter the date over the
field and it will never change. In other words, overwrithe the formula with
the date you need and then save it.

Argy

"ADSK" wrote:

Hello all

I am working on a purchase order form in Excel 2003. On top of the sheet I
have a cell with the formulla =TODAY() which shows todays date on that cell.
Obviously this is not the correct code for what I need. If I open the file
tomorrow it will show me tomorrows date and thats not what I am after. Is
there a way to get todays date on that cell and make it permanent? For
example, I create a new sheet and automatically I get the date on top and no
matter when I open that sheet again, I get the date that I created that sheet.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to use Today's date in a cell and make it stay the same da

How do they create a new sheet?

What you can do is write a statement in the code which creates the new
worksheet like
Range("A1").Value = Date


"ADSK" wrote:

Argy;
Thank you for your quick reply. your solution is good however, The date cell
is locked and I would like to keep it that way so that no one can change
dates by mistake. I appologize for not mentioning this in the begining.

We created a purchase order form and use it everyday for projects we work
on. People at work order materials everyday and create a sheet for whatever
they order. What I would like to have is to let them create a new sheet and
automatically set the date to the date they created the sheet. Again, the
cell that shows the date is locked.

Thank you

Adsk

"Argy - Arcasoft" wrote:

Hi;
There are several things you can do. However, if you just need to save the
file with the date when the sheet was created, simply enter the date over the
field and it will never change. In other words, overwrithe the formula with
the date you need and then save it.

Argy

"ADSK" wrote:

Hello all

I am working on a purchase order form in Excel 2003. On top of the sheet I
have a cell with the formulla =TODAY() which shows todays date on that cell.
Obviously this is not the correct code for what I need. If I open the file
tomorrow it will show me tomorrows date and thats not what I am after. Is
there a way to get todays date on that cell and make it permanent? For
example, I create a new sheet and automatically I get the date on top and no
matter when I open that sheet again, I get the date that I created that sheet.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to use Today's date in a cell and make it stay the same date

You can use a shortcut key:
ctrl-;
(control semicolon)
to enter the date in the cell.

ADSK wrote:

Hello all

I am working on a purchase order form in Excel 2003. On top of the sheet I
have a cell with the formulla =TODAY() which shows todays date on that cell.
Obviously this is not the correct code for what I need. If I open the file
tomorrow it will show me tomorrows date and thats not what I am after. Is
there a way to get todays date on that cell and make it permanent? For
example, I create a new sheet and automatically I get the date on top and no
matter when I open that sheet again, I get the date that I created that sheet.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to use Today's date in a cell and make it stay the same date



"ADSK" wrote:

Hello all

I am working on a purchase order form in Excel 2003. On top of the sheet I
have a cell with the formulla =TODAY() which shows todays date on that cell.
Obviously this is not the correct code for what I need. If I open the file
tomorrow it will show me tomorrows date and thats not what I am after. Is
there a way to get todays date on that cell and make it permanent? For
example, I create a new sheet and automatically I get the date on top and no
matter when I open that sheet again, I get the date that I created that sheet.


Hi ADSK - call something like this from the Worksheet_Activate() event ...

Sub DateOnce()

With Me
If Not (.Range("A2").Value = "Date done") Then
.Unprotect ("YourPassword")
.Range("A1").FormulaR1C1 = "=TODAY()"
.Range("A1").Calculate
.Range("A2").Value = "Date done"
.Protect ("YourPassword")
End If
End With
End Sub

....after also locking whichever cell holds the flag (A2 in the example).

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to use Today's date in a cell and make it stay the same date

On Nov 16, 11:05*am, ADSK wrote:
Hello all

I am working on a purchase order form in Excel 2003. On top of the sheet I
have a cell with the formulla =TODAY() which shows todays date on that cell.
Obviously this is not the correct code for what I need. If I open the file
tomorrow it will show me tomorrows date and thats not what I am after. Is
there a way to get todays date on that cell and make it permanent? For
example, I create a new sheet and automatically I get the date on top and no
matter when I open that sheet again, I get the date that I created that sheet.


I just checked that. Even if you have the formula: Today() in a cell
you can type over it and put in any date.
I used: '11Nov89....NOTE: Colon will not show..Semi Colon will
show.Empty cell: I changed my computer date and it stayed the same. as
11Nov89. Unknown if this helps.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
text and today's date in 1 cell rexie3 Excel Discussion (Misc queries) 5 February 8th 07 10:38 PM
Combine text and today's date in a cell Sheila Excel Worksheet Functions 6 August 29th 06 11:15 PM
Fill cell with today's date Sarahbkelly Excel Discussion (Misc queries) 6 January 20th 06 01:16 AM
find cell with today's date James D Excel Discussion (Misc queries) 2 January 16th 06 09:59 PM


All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"