View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
JLatham JLatham is offline
external usenet poster
 
Posts: 2,203
Default Can I set a file to auto-open and save at each month begin dat

If what I understand is correct, you cannot do it.

What I understand now is that you want an Excel file to open itself at
midnight and then save itself so that its date stamp will reflect the next
day.

A closed file cannot open itself. You would need another
application/scheduler running somewhere to perform that task. And right off
the top of my head I don't know of any - they probably exist, I've just never
had a call to use one.

"Dominic" wrote:

Well, let's just use TODAY() as an example. I save the file now, but want to
auto-open and save the file at midnight so the date on the file shows the
change in the date.

The need for this is that the file is used as an external data provider for
reporting. If the file is not saved with the change, the previous saved data
will be fed into reports instead of today's data. Thanks

"JLatham" wrote:

Probably, but a couple of examples of your date-dependent formulas would sure
help.

Also, look at the NOW() function in Excel. That may help you with this
problem. You can do math with it that will give elapsed time between dates,
as NOW()-30 for a date 30 days previous to the current date.


"Dominic" wrote:

Want the excel file to open so the date-dependent formulas refresh to the new
month. Then save the file. Can this be done?