View Single Post
  #2  
Old November 30th 07, 05:28 PM posted to microsoft.public.outlook.program_vba
Dan Mitchell
external usenet poster
 
Posts: 58
Default Sender address!!

wrote in news:c2063db6-5f4c-478a-beca-4358ad1cad94
@o42g2000hsc.googlegroups.com:
Debug.Print inbox.messages(1).Sender.Type ' Crash Line!


Which bit of this line crashes? If you do this, which one has the
problem?

mapi.messages messages = inbox.messages
mapi.message message = messages.getfirst
mapi.addressentry snd = message.sender
debug.print snd.type

Also, what happens if you uncomment the logout code at the end? What
happens if you log in once per run and use the same logged in session all
the time, rather than logging in once per getsenderdata call?

-- dan
Ads