Sending individual rows of Data to outlook contact

dazzerwrestle

New Member
Joined
Jul 26, 2007
Messages
3
Hi I am new to this so I hope it makes sense & someone can help I am trying to send Individual rows of data from a workbook to different E-mail addresses without send the whole worksheet I have the code below which sends a complete workbook but only want to send say row 1 to joe Bloggs line 2 to say Fred Perry & so on.

I have a feeling that I may need to write an IF ELSE statement but am unsure.

ActiveWorkbook.SendMail Recipients:=" Joe Bloggs "

Any Help will be greatly Appreciated.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Thanks Adamc that is cool as it explains how to send a section of a workbook via oulook but I am looking really to send out a automated E-mail to several different users E-mail addresses at the same time if that mays sense.

I want to say send user A line, User B line 2 & user C line 3 of the same workbook.

I am not sure if I need to create a form in VBA & attach it to the table in excel that contains the users information.

Again if anyone can help it would be really apprciated.
 
Upvote 0
I have had a go at writing the code put my VBA skills at the best please can someone help or guide me to what I need to change in the code

Sub SendASheet()

Dim Filename As String

Filename = " Productivitytest.xls"

[A4].ActiveSheet.Copy


[A4].SaveAs Filename

[A4].SendMail "blah@blah.com", "My Sheet"

[A4].Close False

Kill Filename

End Sub
 
Upvote 0

Forum statistics

Threads
1,218,576
Messages
6,143,315
Members
450,477
Latest member
teresab543

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