Posted: Wed Jul 11, 2007 3:44 pm Post subject: Recording macros for date
OK, I am trying to record a macro in Writer, since I am not a coding type. Here is what I am doing:
I start record macro. I then enter "control-F2" to open insert field. I click on date (fixed), I then click on the format I want, insert, close. I then stop the macro recording, name and save it. When I run it, it fails and errors out. Why?
Joined: Jun 20, 2006 Posts: 2051 Location: Midwest, USA
Posted: Wed Jul 11, 2007 4:01 pm Post subject:
What is the exact messge of the error?
I just tried to replicate your process, and it works fine for me. The only thing I know I did different is that I had to click on the "Document" tab in the Insert Fields window to get to Date(fixed).
What version and patch are you at with NeoOffice? (i.e., I use NeoOffice 2.1, patch 7).
I am running NeoOffice 2.1 with patch 7. If I record the macro as described, it works fine in that document. But when I close the document, open a new document, and try the macro, it returns a number, not the date. The number looks like it must be the computer value for the date. It is 39275.34. Now, interestingly, when I try to cut and paste that field number into this post, here is what happens:
Thursday, July 12, 2007
So, it returns the correct format in this post, but not in the document!
That bug (which I reported) involves using Input Fields related to User fields formatted as dates, but the effects are very similar.
There is a partial work around, though. You can go to Tools>Customize>Keyboard and assign a keyboard shortcut for Insert>Date. That will insert a fixed date. Not sure if it will be in the format you want, but you can always right click on control click on the field, choose "fields..." from the contextual menu, and shift the formatting.
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