Solved

VBA Codes required to send mail from excel via Outlook as well as ThunderBird

Posted on 2012-04-02
3
460 Views
Last Modified: 2012-05-21
Dear Experts,

I want VBA codes to send the mail from Excel file to predefined recipients . The excel file will be attached to mail.

As some of our yours are using Outlook & others are using ThunderBird hence codes shall work in both.

Please suggest.

Thanks in advance.

Nilesh.
0
Comment
Question by:tnilesh2
  • 2
3 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 37800033
I suggest code to send using the default mail client ... See www.rondebruin.nl/cdo.htm

Chris
0
 

Author Comment

by:tnilesh2
ID: 37800387
Hi Chris,
Thanks for looking into,
I already checked the link http://www.rondebruin.nl/cdo.htm.

But it does not talks about the mail merge using Thunderbird.

Now to simplify I decided to put to command buttons, one for outlook & another is for Thunderbird.

Can you please suggest codes for attaching the excel file in Thunderbird mail message.

Regards,
Nilesh.
0
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 500 total points
ID: 37800533
CEO uses the default mail client and can in addition be set to use the mail server so in what way does it not work?

If you explicitly want to mail merge then you will need to loop through the recipients in vba sending each separately as processed in the loop.

Chris
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now