J
Janette
Hi,
I have a VBA executable that opens a pop3 mail box and after synching,
processes the mail. It works on one server but on the other it gives "91 :
object variable or with block variable not set" when it does the following
Set olApp = New Outlook.Application
Set onMAPI = olApp.GetNamespace("MAPI")
onMAPI.Logon , , , True
Set sync = onMAPI.SyncObjects
Set osync = sync.Item("Mail Account")
Set syncevent = New syncevents
osync.Start
' **
Do Until sync_done
DoEvents ' Yield to other processes.
Loop
It never gets to '** it gives the object variable error. Can anyone suggest
what might be the problem. I have checked and both servers run the same
version of outlook 2000.
Thanks
Janette
I have a VBA executable that opens a pop3 mail box and after synching,
processes the mail. It works on one server but on the other it gives "91 :
object variable or with block variable not set" when it does the following
Set olApp = New Outlook.Application
Set onMAPI = olApp.GetNamespace("MAPI")
onMAPI.Logon , , , True
Set sync = onMAPI.SyncObjects
Set osync = sync.Item("Mail Account")
Set syncevent = New syncevents
osync.Start
' **
Do Until sync_done
DoEvents ' Yield to other processes.
Loop
It never gets to '** it gives the object variable error. Can anyone suggest
what might be the problem. I have checked and both servers run the same
version of outlook 2000.
Thanks
Janette