View Single Post
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?R2VvcmdlTWFy?=,

I have a Word document created from a Word template that contains AutoText
and Macros. When I use the document on the computer where it was created,
the macros work fine.

Then I put the document on another computer along with the template through
ToolsTemplate and Addins. It seems to work. (or maybe I also save the
document as template.)

If I make a copy of the document in explorer, the document works just as well.

Exactly how are you doing this?

I have an application in Access VBA that creates a Word doc by doing
FileCopy of the base document into a new document. That copy does not see
the template's macros.

Why would you use FileCopy instead of the Documents.Add method of the Word
object model?

Have you set up this template as a global addin, or is it simply attached to the
document? When you use FileCopy and open the document in Word, what is the
attached template?

In short, if I copy in Explorer, it works and if I copy in Access it doesnot
work.


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)