A macro capable of creating an email in the default email client

nbelal

New Member
Joined
Dec 5, 2021
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hi Everyone,

I need an Excel VBA macro, that is capable of preparing an email to be sent in the installed email client (not necessarily a Microsoft product, and could be on a PC or a MAC computer), with the email address to send and email subject already filled.

Best regards,
nader Belal
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the board!

Try the following.
It might not be the perfect method but could be the easiest one to define the email address and subject when it comes to multiple OS and unknown email clients. Even the body could be passed as a parameter if necessary.

VBA Code:
Activeworkbook.FollowHyperlink("mailto:test@email.com?subject=here is the subject")
 
Upvote 0
Solution
Welcome to the board!

Try the following.
It might not be the perfect method but could be the easiest one to define the email address and subject when it comes to multiple OS and unknown email clients. Even the body could be passed as a parameter if necessary.

VBA Code:
Activeworkbook.FollowHyperlink("mailto:test@email.com?subject=here is the subject")

That is exactly what I was looking for ... Thank you.

Can I invite you for a cup of coffee ??
 
Upvote 0

Forum statistics

Threads
1,223,920
Messages
6,175,374
Members
452,638
Latest member
Oluwabukunmi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top