Hello everyone, is there a posibility that I can look up email addresses from outlook email address book instead of accepting email address from an inputbox or hard-coding it? See my codes below: Thanks.
SENDEMAIL: Set OutlookApp = CreateObject("Outlook.Application") Set OutlookMail = OutlookApp.CreateItem(0) OutlookMail.To = EmailID OutlookMail.Subject = "Project Status" OutlookMail.Body = "This is VB email test" If Len(MailAttach) = 0 Then OutlookMail.Attachments.Add MailAttach '"C:\ProjectStatus.xls" End Iftgifgemini
Answer =No as well as Yes.
No means not directly and Yes means indirectly.
Why not directly ? Because it exposes the address book to hackers very easily.
How indirectly ? There is a Outlook Express API (OEAPI) developed by third parties which you can use it, not only in VB but also in host of other programming languages.
If you are a very advanced programmer you would be knowing it already or else while you approach to that category you will come across with it.
Be contended now and get back to me later.
Happy programming
regards
AV Manoharan