S
samaclau
Until recently the following code has worked fine.
Dim objWord As Word.Document
Set objWord = GetObject(conDocDirectory & "Labels.doc", "Word.Document")
objWord.Application.Visible = True
objWord.MailMerge.Execute
Now the GetObject call returns a run time error 13 - Type mismatch.
I am running Office 2003 and XP SP3.
To fix this I have already tried the following:
1. Checked the References - none are missing.
2. Unchecked and re-checked the references - still none are missing
3. Unregistered and re-registered the vbe6.dll - success at each step but
problem still persists.
4. Copied older version of vbe6ext.olb and repeated step 3 - same results.
I hope that this is not a red herring but, about the time that this started,
one of my users installed a trial version of Excel 2007. It has been removed
and I still have the same problem. Could this have messed up the GetObject
definition?
Dim objWord As Word.Document
Set objWord = GetObject(conDocDirectory & "Labels.doc", "Word.Document")
objWord.Application.Visible = True
objWord.MailMerge.Execute
Now the GetObject call returns a run time error 13 - Type mismatch.
I am running Office 2003 and XP SP3.
To fix this I have already tried the following:
1. Checked the References - none are missing.
2. Unchecked and re-checked the references - still none are missing
3. Unregistered and re-registered the vbe6.dll - success at each step but
problem still persists.
4. Copied older version of vbe6ext.olb and repeated step 3 - same results.
I hope that this is not a red herring but, about the time that this started,
one of my users installed a trial version of Excel 2007. It has been removed
and I still have the same problem. Could this have messed up the GetObject
definition?