Re: object variable error 91 when sync in outlook 2000
- From: "Janette" <ning@xxxxxxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 09:41:56 +1000
Hi Michael,
Thanks for your reply. I didn't setup the original server so I am new to
this. When I setup the new server, I setup the pop3 account in outlook and
choose the name "Mail Account". I take it I need to do something else apart
from this to create the "Mail Account" item. Can you give me a pointer in
the right direction.
Thanks
Janette
"Michael Bauer" <mb@xxxxxxxx> wrote in message
news:4radh4zv5wqn$.ookdduvadod0$.dlg@xxxxxxxxxxxxx
> Am Thu, 28 Jul 2005 12:14:50 +1000 schrieb Janette:
>
> Hi Janette,
>
> if osync.Start throws that error then osync is Nothing. That is,
> sync.Item("Mail Account") returns Nothing. This in turn means there´s no
> item called "Mail Account" in the sync list.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
>
>
> > 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
.
- Follow-Ups:
- Re: object variable error 91 when sync in outlook 2000
- From: Janette
- Re: object variable error 91 when sync in outlook 2000
- References:
- Re: object variable error 91 when sync in outlook 2000
- From: Michael Bauer
- Re: object variable error 91 when sync in outlook 2000
- Prev by Date: Re: Application_Startup event handler not being called
- Next by Date: Re: object variable error 91 when sync in outlook 2000
- Previous by thread: Re: object variable error 91 when sync in outlook 2000
- Next by thread: Re: object variable error 91 when sync in outlook 2000
- Index(es):
Relevant Pages
|