Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Showing the Address Book window

Hello All,

I need your help to get rid of the Outlook security message that shows
up everytime I use this procedure that shows the Address Book window so
that the user can select an email address that will be stored in a
textbox for later use.

I am attaching the procedure and wonder if another way exist to have
the same result and avoid the Outlook security message.

Thanks.
Karim
_______________________________________________
Sub Address(field, shortname, destinataire)
Dim olemsg, sDialogCaption, recips
On Error GoTo Erreur
Set olemsg = CreateObject("MAPI.Session")
olemsg.logon "", "", False, False, 0
sDialogCaption = "Sélectionnez " & field
If Not Err Then
Set recips = olemsg.addressbook(Nothing, sDialogCaption, True,
False, 1, shortname, "", "", 0)
destinataire = recips(1).Name
olemsg.logoff
End If
Set olemsg = Nothing
Set recips = Nothing
Exit Sub
Erreur:
Call Erreur
End Sub

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Showing the Address Book window

See

http://www.rondebruin.nl/sendmail.htm
or
http://www.rondebruin.nl/cdo.htm (no security warnings)

Hope this helps.

Martin

Karim Benabd ha escrito:

Hello All,

I need your help to get rid of the Outlook security message that shows
up everytime I use this procedure that shows the Address Book window so
that the user can select an email address that will be stored in a
textbox for later use.

I am attaching the procedure and wonder if another way exist to have
the same result and avoid the Outlook security message.

Thanks.
Karim
_______________________________________________
Sub Address(field, shortname, destinataire)
Dim olemsg, sDialogCaption, recips
On Error GoTo Erreur
Set olemsg = CreateObject("MAPI.Session")
olemsg.logon "", "", False, False, 0
sDialogCaption = "Sélectionnez " & field
If Not Err Then
Set recips = olemsg.addressbook(Nothing, sDialogCaption, True,
False, 1, shortname, "", "", 0)
destinataire = recips(1).Name
olemsg.logoff
End If
Set olemsg = Nothing
Set recips = Nothing
Exit Sub
Erreur:
Call Erreur
End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Showing the Address Book window

Thanks Martin.

Martin Los a écrit :

See

http://www.rondebruin.nl/sendmail.htm
or
http://www.rondebruin.nl/cdo.htm (no security warnings)

Hope this helps.

Martin

Karim Benabd ha escrito:

Hello All,

I need your help to get rid of the Outlook security message that shows
up everytime I use this procedure that shows the Address Book window so
that the user can select an email address that will be stored in a
textbox for later use.

I am attaching the procedure and wonder if another way exist to have
the same result and avoid the Outlook security message.

Thanks.
Karim
_______________________________________________
Sub Address(field, shortname, destinataire)
Dim olemsg, sDialogCaption, recips
On Error GoTo Erreur
Set olemsg = CreateObject("MAPI.Session")
olemsg.logon "", "", False, False, 0
sDialogCaption = "Sélectionnez " & field
If Not Err Then
Set recips = olemsg.addressbook(Nothing, sDialogCaption, True,
False, 1, shortname, "", "", 0)
destinataire = recips(1).Name
olemsg.logoff
End If
Set olemsg = Nothing
Set recips = Nothing
Exit Sub
Erreur:
Call Erreur
End Sub


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add-in AND Macros Not Showing Up in New Book SkyEyes Excel Discussion (Misc queries) 15 April 12th 07 04:38 PM
e-mail address via outlook address book Erik Excel Programming 0 October 17th 06 11:21 PM
Immediate Window not showing up below code window ExcelMonkey Excel Programming 1 March 22nd 06 12:02 AM
How do I import Office address book to Outlook Express address bo. snnorp Excel Discussion (Misc queries) 2 February 22nd 05 11:47 AM
How to insert an address from Outlook 2003 address book ? Dubois Excel Programming 0 September 27th 04 09:26 AM


All times are GMT +1. The time now is 02:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"