LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Insert date automatically

You created the file in xl97 and it has never been used in a later version?
Try it in a new file. I had no problem raising the error.

--
Regards,
Tom Ogilvy

"Sean Connolly" wrote in message
...
Hi Tom,

Of course you're correct, this collection hasn't been available in Excel
'forever', but ...

On an old PC of mine I have Excel 97 SR-1 (exactly for testing such
situations <g!) and the code works just fine and dandy.

I'm intrigued now ...

Cheers, Sean.

"Tom Ogilvy" wrote:

Not to detract from your excellent advice, but just to add:

All Excel workbooks are saved with a datetimestamp as standard built-in
Excel functionality.


Isn't totally correct. This was not supported in Excel until xl2000.

For
example, in a workbook that has only been opened in Excel 97 or earlier

and
if executed in xl97, your code produces an error.

--

Regards,
Tom Ogilvy


"Sean Connolly" wrote in

message
...
Hi Mike,

All Excel workbooks are saved with a datetimestamp as standard

built-in
Excel functionality. To access this programatically (via VBA), check

out
the
BuiltinDocumentProperties collection of the Workbook object in Excel's

help.
A number of properties are available, the one you're probably most

interested
in is "Last Save Time". As an example, with a previously saved

workbook
open,
paste and execute this code into the Immediate pane of the Visual

Basic
Editor (VBE).

debug.Print ActiveWorkbook.BuiltinDocumentProperties("Last Save Time")

Hit enter and you'll get the date and time this workbook was last

saved.
e.g. 01-Jul-05 19:06:12

You can use the properties in this collection to (programatically) set

cell
values, or page headers/footers (or whatever).

HTH, Sean.

"MikeA" wrote:

Tim
Say at the bottom of the page - either side.
The idea is that a spread sheet will not be saved without a date

stamp.
Mike A
"Tim Williams" <saxifrax@pacbell*dot*net wrote in message
...
Inserted where?

Tim

"MikeA" wrote in message

...
It is probably elementary but I am no expert:
Is it possible to set up Excel in such a way that the date (and
time) will
always be inserted on Save?
Thanks
MikeA






 
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
Automatically insert date sheryar khan Excel Worksheet Functions 2 August 4th 09 05:51 PM
insert DATE automatically TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 September 29th 05 08:39 PM
Insert date automatically TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 September 29th 05 08:34 PM
Automatically Insert DATE, so that DATE will NOT change Cie Excel Worksheet Functions 4 April 4th 05 05:51 PM
Insert date automatically Rick Excel Discussion (Misc queries) 2 March 31st 05 11:49 PM


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