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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,224,862
Messages
6,181,464
Members
453,044
Latest member
rgbenson1

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