I want to click a button and do a mail merge in a Word document. I saw numerous examples of this using MailMerge.OpenDataSource.
One document said that this was in microsoft.office.interop.word.dll. I found Microsoft.Office.Interop.Word in C:\Windows\Assembly, but cannot include it from Tools > References > Browse.
When I try to run my code I receive this Visual Basic message:
Compile error:
Method or data member not found.
MailMerge is highlighted in my code, so I am certain that's where the problem lies.
One document I read made me think that I should add Microsoft DAO 3.6 Object Library. However, when I tried to include it, I received the following Visual Basic message:
Name conflicts with eisting module,project, or object library. I can't find any conflicts with the existing references:
Visual Basic For Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 LIbrary
Microsoft Office 12.0 Access database engine Object Library
One document said that this was in microsoft.office.interop.word.dll. I found Microsoft.Office.Interop.Word in C:\Windows\Assembly, but cannot include it from Tools > References > Browse.
When I try to run my code I receive this Visual Basic message:
Compile error:
Method or data member not found.
MailMerge is highlighted in my code, so I am certain that's where the problem lies.
One document I read made me think that I should add Microsoft DAO 3.6 Object Library. However, when I tried to include it, I received the following Visual Basic message:
Name conflicts with eisting module,project, or object library. I can't find any conflicts with the existing references:
Visual Basic For Applications
Microsoft Access 12.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 LIbrary
Microsoft Office 12.0 Access database engine Object Library