Check Names and Select Names

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

Sounds like CDO is not installed on this machine. It's an optional Outlook
component. Rerun Outlook/Office setup to install it.
 
O

Outlook Worm

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.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top