Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

Late binding a referenced word template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark - 18 Oct 2005 20:38 GMT
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.
Jezebel - 18 Oct 2005 21:58 GMT
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.

>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
[quoted text clipped - 9 lines]
> If someone could assist with a solution it would be greatly
> appreciated.
Tony Jollans - 18 Oct 2005 23:42 GMT
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.

--
Enjoy,
Tony

> 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
[quoted text clipped - 9 lines]
> If someone could assist with a solution it would be greatly
> appreciated.
Jezebel - 19 Oct 2005 00:42 GMT
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?

> From Word 2000 on, the default Startup folder has been moved to,
> typically:
[quoted text clipped - 26 lines]
>> If someone could assist with a solution it would be greatly
>> appreciated.
Tony Jollans - 19 Oct 2005 09:10 GMT
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.

--
Enjoy,
Tony

> What's the advantage to duplicating the template for each user? In this
> case, since it contains (presumably) shared data, the common startup folder
[quoted text clipped - 33 lines]
> >> If someone could assist with a solution it would be greatly
> >> appreciated.
Jezebel - 19 Oct 2005 09:53 GMT
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.

> In most cases there is no significant difference between computer and
> user.
[quoted text clipped - 47 lines]
>> >> If someone could assist with a solution it would be greatly
>> >> appreciated.
Jonathan West - 19 Oct 2005 10:59 GMT
> 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.

Signature

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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.