Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey Chip,
Thank you so much! I inserted the code into my Auto_Open sub routine, and it worked like a dream! Yours, C.M. -----Original Message----- Cathy, Use =TODAY() and =TODAY()-7 If you want to use VBA, use Range("A1").Value = Format(Now,"mm/dd/yyyy") and Range("A2").Value = Format(Now-7,"mm/dd/yyyy") -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Cathy Myers" wrote in message ... Hi, I am very new to both Excel and VBA. How do I set a cell to default to today's date, and another cell to default to 7 days before today? Thanks, C.M. . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
change date in excel from today to original date of file | Excel Discussion (Misc queries) | |||
Date Formula for number of days between a date and today | Excel Discussion (Misc queries) | |||
IF TODAY equals date in cell A10, or if TODAY is beyond that date | Excel Worksheet Functions | |||
MAX figure within a date range as a function of today()'s date | Excel Worksheet Functions | |||
SUMIF within date range as a function of today()'s date | Excel Worksheet Functions |