Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am verymuch new to VB. I am getting error no 287 (Application defined or object defined error)whil sending email from excel (outlook 2010). I have set Tool->option

Advance thanks for your kind help

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
195 views
Welcome To Ask or Share your Answers For Others

1 Answer

In order to send an email message from excel via outlook, you would have to set an refrence to outlook in Excel VBA

Tools -> Refrences -> "Microsoft Outlook 12.0 Object Library"

Then you have to use a similar code written in excel vba to send mail using outlook

Mail worksheet in the body of the mail


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...