furnitureheaven
Registered User.
- Local time
- Today, 16:07
- Joined
- Aug 5, 2008
- Messages
- 36
hi,
i am using vba modules for "Mail Merge", the module code is working fine upto office versions 2000. but when i install office 2003, it give me an error i.e.
"The MailMergeToDoc command is not available because the document is not a mail merge main document."
could anyone have an idea, how to rewrite a code in vba, so it can work with office 2003.
the code is
i am using vba modules for "Mail Merge", the module code is working fine upto office versions 2000. but when i install office 2003, it give me an error i.e.
"The MailMergeToDoc command is not available because the document is not a mail merge main document."
could anyone have an idea, how to rewrite a code in vba, so it can work with office 2003.
the code is
Code:
Const MSTB_MSWORD = 300&
Application.Run "utility.util_StartMSToolbarApp", MSTB_MSWORD
Dim WordObj As Object
Set WordObj = CreateObject("Word.Basic")
WordObj.Fileopen "c:\xyz\abc.Doc"
WordObj.MailMergeToDoc
WordObj.Activate "abc.doc"
WordObj.Fileclose