hi andrew.

Andrew Brown wrote:
Urska Colner <[EMAIL PROTECTED]> wrote in news:4215A0EC.20004
@agenda.si:


anyone knows of a macro that would let me apply an incremented document number to a newly opened document?


Not as such. I can let you have a macro which saves letters and things with a filename based on the day's date. But that's not quite what you want. It does, however, show you how to construct filenames for saving under.
great. if you could send it to my email off-list, that would be nice. i'll play around with it and hopefully think of something.

if not, I could use some advice: what is the best way to do that? should the document number depend on the number of documents, currently stored in a directory or would it be better to have the number depend on a template. that means that the number would increment when a new empty document was opened from *the same* template.


Countig th enumber of files in a directory is certainly wrong, for the reasons you suggest.
thought so. :(

For incrementing things, could you store the incremented number in one of the document properties fields of the template you're using (it would be a string, of course, and you'd have to convert it to increment it). But it could be a string of essentially arbitrary length, which you may need, as you come up to your millionth document.
great idea. i thought it might be something along these lines, but didn't think of this one.

NOte: I haven't tested this at all. Just trying to be helpful.


no problem. suggestions are what i was looking for in the first place. i'll let you know if i come up with something useful.

urska

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to