
Outlook 97 hangs after called from vba
Hi everybody
I used an Access 97 application to send emails with Outlook 97. it
first run on win95 without problems.
Main codes lignes are
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(sTo)
objOutlookRecip.Type = olTo
.Subject = sSubj
.Body = sData
For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
Next
End With
Set objOutlook = Nothing
These lignes work well with win95.
Recently we make a clean installation of Windows 98 on my PC. We have
now the following troubles:
emails are send with the VBA code using the Outlook object model
without problems but
1) the dll mapisp32 is not unload when the code is finished, which I
suspect is not correct.
2) when I open Outlook after vba calls, I cannot delete or received the
mails, Outlook hangs and I must kill it with ctrl alt + del.
I cannot correct that and I would appreciate any helps
Thanks
Francois R.
Sent via Deja.com
http://www.*-*-*.com/