September 6th, 2004, 02:39 AM
I'm trying to export data fields to a word document, but my code won't compile. I get a compile error: User-defined type not defined at this line of code:
Dim appWord As Word.Application
Any ideas? Is there something I need to install or enable? BTW, I'm using Access 2000.
September 6th, 2004, 04:38 AM
try this instead
Set appword = CreateObject("Word.Application")
If you found a post particularly helpful, show your appreciation by clicking the "scales" icon in the bar just above the post, at the right hand side.
July 26th, 2007, 01:42 AM
Failed to Create word document object
I have to dynamically generate a word document using ASP. We are using a word template, and certain values from a database will be inserted in the document.
However, when i try to create an object of Word, the stmt results in an error saying :
Set WordApp = CreateObject("word.application")
*Set WordDoc = WordApp.Documents.Add()
*Error : "Microsoft Word (0x800A175D) Could not open macro storage."