Late binding a referenced word template

M

Mark

I am working on Word 97 for work tempates, but slowly they are
upgrading to WORD XP. We have a template which keeps a number of
constants which is normally placed in the path C:\Program
Files\Microsoft OFfice\Office\Startup.

Is there a way to do late binding on this file as the path in later
version of word changes from Office to eg Office10 or even Office11?

If there is, the file is called menu.dot all references are called with
men.(something).

If someone could assist with a solution it would be greatly
appreciated.
 
J

Jezebel

Late binding refers to object libraries, not templates.

A template in the Startup folder will be loaded as an add-in, in Word 10 or
11, exactly as in 97. This aspect of Word VBA hasn't changed.
 
T

Tony Jollans

From Word 2000 on, the default Startup folder has been moved to, typically:

C:/Documents and Settings/(userid)/Application Data/Microsoft/Word/Startup

(it varies according to operating system)

Although the old location is still available as well - and often referred to
as the 'Office' startup folder - you would be better using the above
location. Do be aware, however, that each user, rather than each computer,
has their own startup file.
 
J

Jezebel

What's the advantage to duplicating the template for each user? In this
case, since it contains (presumably) shared data, the common startup folder
(under Program Files) seems the obvious location for it -- single file to
maintain, single-point update, each user guaranteed to be working to the
same data. This is where (eg) the PDF start-up files go. Or is there some
other issue here?
 
T

Tony Jollans

In most cases there is no significant difference between computer and user.
Now if you want to put it on a common network location that's a different
matter but that is something different from the question that was asked.
 
J

Jezebel

Seems to me there's a big difference if you have more than one user on the
same machine: you multiply your maintenance task by the number thereof. But
that's probably the exception these days.
 
J

Jonathan West

Jezebel said:
What's the advantage to duplicating the template for each user? In this
case, since it contains (presumably) shared data, the common startup
folder (under Program Files) seems the obvious location for it -- single
file to maintain, single-point update, each user guaranteed to be working
to the same data. This is where (eg) the PDF start-up files go. Or is
there some other issue here?

1. Depending on the security level you set, the user Startup location can be
regarded as "trusted" (i.e macros will run) while the Office startup
location is not trusted.

2. If you are running Windows XP with fast user switching, it is possible
for two users on the same machine to have Word open at the same time. I have
known wierd errors to occur in macros when two copies of Word are trying to
access the same file, where the errors go away as soon as a single instance
has exclusive access. Much better to have two separate copies of the add-in,
one for each user.

3. The Adobe PDFMaker add-in is one of the nastiest most badly-behaved
commercial add-ins it has ever been my misfortune to encounter. You should
consider it as a perfect example of how not to do things. Anything that
Adobe has done with PDFMaker, you should aim to do the opposite.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
Top