#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Save Today()

I would like to save the current date in cell A1 and not have it change,
regardless of when I open the sheet. I copy the current sheet for the next
day's activity. When I open the new sheet the next day I would like the new
sheet have the new current date and save it as well. Any quick fix for this?
Thanks.....
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Save Today()

So when you copy to the new sheet you want to save it such that the date does
NOT change when it is opened next time?

Use this macro
Sub Macro2()
Worksheets("Sheet1").Select
Cells.Select
Selection.Copy
Sheets("Sheet2").Select
Range("A1").Select
ActiveSheet.Paste
Range("A1").Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.Save
End Sub
"3Nails" wrote:

I would like to save the current date in cell A1 and not have it change,
regardless of when I open the sheet. I copy the current sheet for the next
day's activity. When I open the new sheet the next day I would like the new
sheet have the new current date and save it as well. Any quick fix for this?
Thanks.....

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Save Today()

Activesheet.Range("A1").Value = Date '<< will perform what you want

"3Nails" wrote:

I would like to save the current date in cell A1 and not have it change,
regardless of when I open the sheet. I copy the current sheet for the next
day's activity. When I open the new sheet the next day I would like the new
sheet have the new current date and save it as well. Any quick fix for this?
Thanks.....

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Save Today()

You can enter the current data as a static value (won't change in the
future as the NOW or TODAY function will) by pressing CTRL ; (hold
down the CTRL key and press the semi-colon key). Or, if you prefer,
you can add it using code:

ActiveSheet.Range("A1").Value = Format(Now,"Short Date")

To copy the active sheet for the next day, use code like the
following. It will copy the Active Sheet to the end of the existing
sheets, assign today's date to cell A1 of the new sheet, and (if you
uncomment the line) names the new sheet with the current date.

Sub CopySheet()
With ThisWorkbook.Worksheets
ActiveSheet.Copy after:=.Item(.Count)
End With
With ActiveSheet
.Range("A1").Value = Format(Now, "Short Date")
' uncomment line to name the new sheet.
'.Name = "Sheet " & .Range("A1").Value
End With
End Sub


Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Mon, 27 Oct 2008 13:36:34 -0700, 3Nails
wrote:

I would like to save the current date in cell A1 and not have it change,
regardless of when I open the sheet. I copy the current sheet for the next
day's activity. When I open the new sheet the next day I would like the new
sheet have the new current date and save it as well. Any quick fix for this?
Thanks.....

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
Locking =Today() on Save as on Template Ross Thomson Excel Worksheet Functions 5 October 10th 08 05:55 AM
=TODAY() Amy Excel Discussion (Misc queries) 5 January 24th 08 12:25 AM
IF TODAY equals date in cell A10, or if TODAY is beyond that date SoupNazi Excel Worksheet Functions 4 April 23rd 07 01:14 AM
Today()-1 Wanna Learn Excel Discussion (Misc queries) 7 November 10th 06 07:25 PM
=IF(OR(TODAY()G9),"Pass","Overdue") Why doe it not wo. Fkor Excel Discussion (Misc queries) 3 March 10th 05 08:29 AM


All times are GMT +1. The time now is 06:11 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"