Check Names and Select Names

  • Thread starter Thread starter Outlook Worm
  • Start date Start date
O

Outlook Worm

Hi,

I want to display Check Names Dialog for any email address not present
in Address book. Also i need to customize to CC and BCC buttons on
"Select Names" dialog [i want to get rid of them]. I think CDO is the
option. But when i try to do it behind Outlook Form in vbscript code
like

Function ResolveAllRecipients()

Set objSession = MAPI.Session
strEntryID = Item.EntryID
strStoreID = Item.Parent.StoreID
objSession.Logon "", "", False, False
Set objMsg = objSession.GetMessage(strEntryID, strStoreID)
objMsg.Recepients.Resolve True
ResolveAllRecipients = objMsg.Recepients.Resolve

Set objSession = Nothing
Set objMsg = Nothing
End Function

It fails at MAPI.Session line. Please advise. Also any code sample for
hiding CC and BCC buttons on "Select Names" dialog.

Regards
Khan G
 
Sounds like CDO is not installed on this machine. It's an optional Outlook
component. Rerun Outlook/Office setup to install it.
 
Thanks for your reply. After a long time here. I have CDO installed on
my machine - But now it gives error

Object does not support this property "objMsg.Recepients.Resolve"

Please guide.
 
Show more of your code. It's impossible to know the context from a single
statement.

Also note: The newsgroup interface you are using apparently does not quote
earlier messages in the thread, making your latest message so short on
detail that you risk not getting the answer you're looking for. Please take
the time to quote the original message.
 
Back
Top