Joined: Jun 21, 2003 Posts: 173 Location: Selmer, Tennessee
Posted: Sun Nov 11, 2007 7:26 am Post subject:
Construct your sheet so that the timestamp is properly calculated on opening, but use the TEXT() function like so:
=TEXT(NOW(); "mm/dd/yy hh:mm:ss") - or whatever format you want to use. This cell will be recalculated every time the sheet autocalculates, as you've found.
To fix the date, record a macro:
1) Select the cell containing the time stamp.
2) Choose Tools->Macros->Record macro
3) Choose Edit->Copy
4) Choose Edit->Paste Special...
5) Uncheck the boxes until only the "Strings" choice remains checked.
6) Click the "OK" button.
7) Go to the Macro window and click "Stop Recording"
8) Name the macro. e.g. "TimeStamp"
Test run the macro. Enter TEXT(NOW(); "hh:mm:ss") into a cell, say A1, and copy it. Paste it anywhere on the sheet, e.g. D1. Leave that cell selected. Choose Tools->Macros->Run, and select your TimeStamp macro. D1 should show the previous time stamp, and A1 should show the time at which you executed the macro.
After you've assured that the macro works as expected, assign it to a key shortcut. You can then just open your template, select the timestamped cell, and hit your shortcut key to fix the time and date.
Read up on macros on the OOo forum to find out about how Neo catalogs and makes macros available. It's not intuitive, so don't skip this. _________________ Jim Plante
MacOS X 10.6.34, MacBook 2GHz C2Duo, 2gb, Neo 3.1.1 p 1
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum