Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default How input today's date and keep that date

I need to input today's date in my worksheet. But, I want that date to stay
THAT date when I open it up a month from now...I don't want it to change to
today's date.

For example, I'm working on my worksheet today and have a cell that input's
today's date next to the data I have. So, it inputs 12/30/07. When I open
this worksheet a month from now I do NOT want it to change that cell to show
today's date (i.e. 01/30/08)...I want it to keep 12/30/07.

How do I do that?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 396
Default How input today's date and keep that date

Ctrl+; works for me, but depending on the organisation of your keyboard, it
might be different.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"tjsmags" wrote:

I need to input today's date in my worksheet. But, I want that date to stay
THAT date when I open it up a month from now...I don't want it to change to
today's date.

For example, I'm working on my worksheet today and have a cell that input's
today's date next to the data I have. So, it inputs 12/30/07. When I open
this worksheet a month from now I do NOT want it to change that cell to show
today's date (i.e. 01/30/08)...I want it to keep 12/30/07.

How do I do that?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default How input today's date and keep that date

See

http://www.mcgimpsey.com/excel/timestamp.html


In article ,
tjsmags wrote:

I need to input today's date in my worksheet. But, I want that date to stay
THAT date when I open it up a month from now...I don't want it to change to
today's date.

For example, I'm working on my worksheet today and have a cell that input's
today's date next to the data I have. So, it inputs 12/30/07. When I open
this worksheet a month from now I do NOT want it to change that cell to show
today's date (i.e. 01/30/08)...I want it to keep 12/30/07.

How do I do that?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How input today's date and keep that date

Insert the date using CTRL + semi-colon(;)

Will remain static.

Or use sheet event code to enter the static date when you enter data or edit a
cell in Column A

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'when entering data in a cell in Col A date is placed in B
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 1 Then
n = Target.Row
If Excel.Range("A" & n).Value < "" Then
Excel.Range("B" & n).Value = Now
End If
End If
enditall:
Application.EnableEvents = True
End Sub

This is sheet event code. Right-click on the sheet tab and "View Code".

Copy/paste into that sheet module. Alt + q to return to Excel window.


Gord Dibben MS Excel MVP


On Sun, 30 Dec 2007 13:55:01 -0800, tjsmags
wrote:

I need to input today's date in my worksheet. But, I want that date to stay
THAT date when I open it up a month from now...I don't want it to change to
today's date.

For example, I'm working on my worksheet today and have a cell that input's
today's date next to the data I have. So, it inputs 12/30/07. When I open
this worksheet a month from now I do NOT want it to change that cell to show
today's date (i.e. 01/30/08)...I want it to keep 12/30/07.

How do I do that?


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
Formula for comparing a date to today's date Sellem Excel Worksheet Functions 4 October 5th 06 01:38 PM
I need today's date returned as date format in formula CMIConnie Excel Discussion (Misc queries) 2 February 23rd 06 04:38 PM
Count number of cells with date <today's date Cachod1 New Users to Excel 2 January 28th 06 02:37 AM
count the number of cells with a date <= today's date Cachod1 New Users to Excel 3 January 27th 06 09:14 PM


All times are GMT +1. The time now is 05:30 PM.

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"