Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BW
 
Posts: n/a
Default Evaluating Today() function only once in a worksheet

Hello,

I've created excel worksheet that auto-populates certain cells with today's
date to facilate filling out a purchase order worksheet.

But problem is once i save the worksheet, and open it at some other date
the Today() function gets executed again a re-populates those cells with
today's date, instead of keeping the original date. HOw can i prevent this
from happening so that when the worksheet is opened at some future day, those
cells will retain the original date.
  #2   Report Post  
BW
 
Posts: n/a
Default

Oops, forgot to add the requirement that i do not want to add any VB code to
the worksheet. ie. I don't want to add VB code to the workbook_open event to
resolve this issue.

Thanks!

"BW" wrote:

Hello,

I've created excel worksheet that auto-populates certain cells with today's
date to facilate filling out a purchase order worksheet.

But problem is once i save the worksheet, and open it at some other date
the Today() function gets executed again a re-populates those cells with
today's date, instead of keeping the original date. HOw can i prevent this
from happening so that when the worksheet is opened at some future day, those
cells will retain the original date.

  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You have 2 options:

1. use VBA code
2. hardcode the date

I can't help with 1.

For 2, you can just enter the date in one cell and link the other date cells
to that one cell.

CTRL ; (semicolon) enters the date.

Biff

"BW" wrote in message
...
Hello,

I've created excel worksheet that auto-populates certain cells with
today's
date to facilate filling out a purchase order worksheet.

But problem is once i save the worksheet, and open it at some other date
the Today() function gets executed again a re-populates those cells with
today's date, instead of keeping the original date. HOw can i prevent
this
from happening so that when the worksheet is opened at some future day,
those
cells will retain the original date.



  #4   Report Post  
paul
 
Posts: n/a
Default

or copy paste special value
--
paul
remove nospam for email addy!



"Biff" wrote:

Hi!

You have 2 options:

1. use VBA code
2. hardcode the date

I can't help with 1.

For 2, you can just enter the date in one cell and link the other date cells
to that one cell.

CTRL ; (semicolon) enters the date.

Biff

"BW" wrote in message
...
Hello,

I've created excel worksheet that auto-populates certain cells with
today's
date to facilate filling out a purchase order worksheet.

But problem is once i save the worksheet, and open it at some other date
the Today() function gets executed again a re-populates those cells with
today's date, instead of keeping the original date. HOw can i prevent
this
from happening so that when the worksheet is opened at some future day,
those
cells will retain the original date.




  #5   Report Post  
BW
 
Posts: n/a
Default

Thanks for responding gentlemen.

Decided that i had to use a single line of VB code inside the template's
workbook_open method to do the trick:

Private Sub Workbook_Open()
If ThisWorkbook.Path = "" Then Sheet1.Range("Start_Date").Value = Now
End Sub



"paul" wrote:

or copy paste special value
--
paul
remove nospam for email addy!



"Biff" wrote:

Hi!

You have 2 options:

1. use VBA code
2. hardcode the date

I can't help with 1.

For 2, you can just enter the date in one cell and link the other date cells
to that one cell.

CTRL ; (semicolon) enters the date.

Biff

"BW" wrote in message
...
Hello,

I've created excel worksheet that auto-populates certain cells with
today's
date to facilate filling out a purchase order worksheet.

But problem is once i save the worksheet, and open it at some other date
the Today() function gets executed again a re-populates those cells with
today's date, instead of keeping the original date. HOw can i prevent
this
from happening so that when the worksheet is opened at some future day,
those
cells will retain the original date.






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
How do I use the TODAY function with the SUMIF function? Lisa B. Excel Worksheet Functions 2 September 30th 05 08:51 PM
creating function (vba) with range arguments Fredouille Excel Worksheet Functions 2 September 12th 05 11:01 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM


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