General information
Category:
COM/DCOM and OLE Automation
>Thanks, but when I run the ole code on my machine it runs fine, it is when I
>run on another machine in the office that I get a OLE Error. For some reason
>my machine can run the code below but not on another machine.
>
>.Application.MailingLabel.CreateNewDocument("5160","","ToolsCreateLabels1", wdPrinterManualFeed)
>
>Word is using the AutoText Feature to run the label merge on my machine but on another machine they do not have the same Word Template. I have even tried to adding a document in word with my 'Normal.dot' template in the ADD Method.
>Is there a work around? Is this readable?
First, I have to say that I haven't worked with the MailingLabel object, so I'm speculating here. If the problem is that you don't have the right template on the client machine, then I think you need to create or copy the template before you do this.
I've built mail merge templates by creating a new document (with Documents.Add) and then saving as a template. I'll try to find some time today to see what's going on when Word creates label documents.
Tamar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only