Sub getemail()
Dim m As MailItem
Set m = ActiveExplorer.Selection(1)
f = m.SenderEmailAddress
m.Close olDiscard
Set cb = CreateObject("clipbrd.clipboard")
cb.Clear
cb.SetText f & vbNewLine
End Sub
Hi I need to copy email address to clipboard using macro.The above script works fine for contacts that are not there in my address book but for contact that added to my outlook it does not work .i am on domain..I want it to copy email address for contacts not in my addressbook and for contacts that there in my address book it should copy the email address or the email address without their doman...Is It possible?
Dim m As MailItem
Set m = ActiveExplorer.Selection(1)
f = m.SenderEmailAddress
m.Close olDiscard
Set cb = CreateObject("clipbrd.clipboard")
cb.Clear
cb.SetText f & vbNewLine
End Sub
Hi I need to copy email address to clipboard using macro.The above script works fine for contacts that are not there in my address book but for contact that added to my outlook it does not work .i am on domain..I want it to copy email address for contacts not in my addressbook and for contacts that there in my address book it should copy the email address or the email address without their doman...Is It possible?