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. 

> 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. 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. 

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



-- 
Andrew Brown
The email in the header does not work.
Contact details and possibly useful macros from
http://www.darwinwars.com/lunatic/bugs/oo_macros.html


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

Reply via email to