Hi Jean
I am just going through the same thing. This code is
working wonderfully. I have this code attached to a
button on my user form. Happy Programming.
Kerry
__________________________
Sub ChooseRecipient()
'using the field names receeded by pr_ decide which fields
from outlook you wish to insert
StrCodeR = "<pr_given_name> <pr_surname>" & vbCr
& "<pr_company_name>" & vbCr & "<pr_postal_address>"
'display the selct names dialogue box
StrAddressR = Application.GetAddress
(addressproperties:=StrCodeR, useautotext:=False,
displayselectdialog:=1, recentaddresseschoice:=True,
updaterecentaddresses:=True)
'if user cancels out of select names dialogue box
If StrAddressR = "" Then Exit Sub
'eliminate blank paragraphs by looking for 2 carriage
returns in a row
idoubleCRr = InStr(StrAddressR, vbCr & vbCr)
Do While idoubleCR <> 0
StrAddressR = Left(StrAddressR, idoubleCRr - 1) & _
Mid(StrAddressR, idoubleCRr + 1)
idoubleCRr = InStr(StrAddressR, vbCr & vbCr)
Loop
'strip off final paragraph mark
StrAddressR = Left(StrAddressR, Len(StrAddressR) - 1)