J
Joost
Hi Guys,
Office 2003 Pro / OS XP Pro
A mail merge document is connected with Outlook (olk).
Every time you open this document it's connection is
lost. (and a lot of messages are coming up)
See: http://support.microsoft.com/default.aspx?kbid=275934
In Order to keep the connection working I had this little
sub:
Sub AutoOpen()
ActiveDocument.MailMerge.MainDocumentType =
wdFormLetters
ActiveDocument.MailMerge.UseAddressBook Type:="olk"
ActiveDocument.MailMerge.EditMainDocument
End Sub
This works wel in 2000.
In 2002 it works (hidden property) because of backward
compatibility,
see: http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vbawd10/html/womscHiddenPrp2000.asp
Now in 2003 it doesn't work anymore!
In Office 2003 - using this command gives two error
message prompts: (and off coarse an VBA error)
This file needs to be opened by the Outlook Address Book
text converter, which may pose a security risk if the
file you are opening is a malicious file. Choose Yes to
open this file only if you are sure it is from a trusted
source.
(Obviously one of 2003 it's many new safety features)
Click Yes - results in the following:
A required file, SCHDMAPI.DLL could not be loaded.
Please check your email installation and re-install
Microsoft Word if necessary.
This file no longer exits on my machine because it is
part of 2002 installation and was made redundant by 2003!
Been doing an awful lot of NG searching and googling. No
success I'm afraid.
Found a lot of people with the same problem but there
doesn't seam to be an working solution attach to it.
The question is quit simple.
Is there an alternative for the code I'm using in 2003?
The goal off course is to have a mail merge document that
will stay in sync with Outlook. Therefore merging to
exported contacts is no option.
Who has got the rescuing answer?
Thnxx,
Joost
Office 2003 Pro / OS XP Pro
A mail merge document is connected with Outlook (olk).
Every time you open this document it's connection is
lost. (and a lot of messages are coming up)
See: http://support.microsoft.com/default.aspx?kbid=275934
In Order to keep the connection working I had this little
sub:
Sub AutoOpen()
ActiveDocument.MailMerge.MainDocumentType =
wdFormLetters
ActiveDocument.MailMerge.UseAddressBook Type:="olk"
ActiveDocument.MailMerge.EditMainDocument
End Sub
This works wel in 2000.
In 2002 it works (hidden property) because of backward
compatibility,
see: http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/vbawd10/html/womscHiddenPrp2000.asp
Now in 2003 it doesn't work anymore!
In Office 2003 - using this command gives two error
message prompts: (and off coarse an VBA error)
This file needs to be opened by the Outlook Address Book
text converter, which may pose a security risk if the
file you are opening is a malicious file. Choose Yes to
open this file only if you are sure it is from a trusted
source.
(Obviously one of 2003 it's many new safety features)
Click Yes - results in the following:
A required file, SCHDMAPI.DLL could not be loaded.
Please check your email installation and re-install
Microsoft Word if necessary.
This file no longer exits on my machine because it is
part of 2002 installation and was made redundant by 2003!
Been doing an awful lot of NG searching and googling. No
success I'm afraid.
Found a lot of people with the same problem but there
doesn't seam to be an working solution attach to it.
The question is quit simple.
Is there an alternative for the code I'm using in 2003?
The goal off course is to have a mail merge document that
will stay in sync with Outlook. Therefore merging to
exported contacts is no option.
Who has got the rescuing answer?
Thnxx,
Joost