• Home  / 
  • VBA
  •  /  Email To-Do list to Team members in One Click using Excel VBA

Email To-Do list to Team members in One Click using Excel VBA

In this blog, we will discuss how to email To-Do list from your outlook mail to respective team members. You would have sent email from outlook but probably not using Excel VBA Code.

For example, you have a To-Do list in your excel file with tasks assigned to each team member and you need to send emails with the assigned task to all your team members. If you do it manually then you need to apply a filter and choose team member’s task one by one and then paste in another sheet and then change the format of the database you have copied and finally need to paste the date in your email.

Let’s look at the example. Assume you have the database like below

Email to do list using excel vba

(Picture 1)

From the above picture you can understand that there are some tasks are defined in a To-Do list. A task should be assigned to a person with a start date and due date.

Now if you do it manually you will apply a filter on your name column and then copy the data and paste it another sheet which should look like below.

Email to do list using excel vba 2(Picture 2)

Then after manually doing this you can copy the same and paste it in your outlook mail and then you need to send the email.
Picture 3

 

(Picture 3)

Now you have done for only 1 employee. You need to do the same for other employees also. Now think if you need to send the task to 50 team members then you will have to do the task for 50 times.

At the same time, a small piece of code will do the task for you. You don’t have to be a programmer to do the same. All you need to know is Where and How to paste the code to run that Excel VBA code.

Follow the below steps to do it automatically:

    1. Press Alt + F11 to go to VBA page
    2. Click on Insert and then Module
    3. Copy the below code and paste the Module
    4. Press F5 to run the code
Note: Please note that after pasting the code in the module and before running the code click on.

Tools –  References…

Email to do list using excel vba 4

(Picture 4)

Then choose Microsoft outlook15.0 Object Library.

Email to do list using excel vba 5

(Picture 5)

After setting this, please press OK and then press F5 to run the code.

You will see it will send emails to all the team members automatically with their respective subject line.

Please download the file from here and play with it.

I hope you found our article useful. Also if you any doubts or questions regarding this article, feel free to post them in the comment section below.

About the author

Yoda Learning Team

Yoda Learning Trainer team includes of 12 Industry experts focused on developing “Project-based" learning solutions, which enable the learners explore real world situations and thus, make the learning process engaging and practical. They have a collective work-experience of 80+ yrs.