mail out

  • Thread starter Thread starter Sean Murdoch
  • Start date Start date
S

Sean Murdoch

Hi There,

I have written some code and want to write all the email
address into a text file. What is the command to retrieve
the email address ?

Set myolApp = CreateObject("Outlook.Application")
Set myNameSpace = myolApp.GetNamespace("MAPI")
Set myfolder = myNameSpace.GetDefaultFolder
(olFolderInbox)
Set theexplorer = myolApp.ActiveExplorer
Set mySelectedItems = theexplorer.Selection
For Each emails In mySelectedItems
eml = emails. <---- I want to assign the email
Next address to eml.

thanks
Sean
 
Hi Sue,

Sorry, I want to retrieve the email address of the sender
who sent the email to me.

thanks
Sean
 
Thanks Sue,

I just found that site as you posted this back.
thanks for your help
Sean
 
Back
Top