Mail Merge in Office 2003 Problem

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
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
 
Have you applied the Service Packs to Office 2003 and have you also applied the HotFix?
 
i have install hot fixes but no effect, same error i am keep getting. i think this is a code we need to chang, but how i don't know.

Hope somebody can help in change the vba code.(mention above)
 

Users who are viewing this thread

Back
Top Bottom