T. J. Frazier wrote:
Jean,
Several small points:
1) About André's Template Changer: AFAIK, even the batch mode will only
process Writer docs (.odt, .odm, .sxw, and .ott). Only these will be
added to the list of files to be assigned a template. Currently (looking
at the code for V1.2.3), Calc, Draw, and Impress are out of luck, I think.
2) André usually has a very good reason for what his code does or
doesn't do, as I have found out the hard way. I will poke around in
non-Writer docs that use templates, but this will be hampered by my
massive ignorance ("Calc has templates?" :-O ), so it will take a while.
My best guess, going in, is that if the document types (.ods, &c.)
support the service and methods used (i.e., don't give an error), then
the subroutine will work with them, too.
You can find Calc templates (and others) at
http://templates.services.openoffice.org/en/templates/business
I'd really appreciate it if you can "poke around" and let me know what
works with André's Template Changer and what doesn't. Of course, I
suppose one of us could ask André, too. ;-)
3) In my email, the subroutine is missing a newline character before the
last line ("End Sub"). The Basic compiler is sure to complain bitterly
about that.
For the manuals, I used the code from a later note from you, which had
the correct line breaks.
--Jean