Send Email of Target.EntireRow values

travisc

Board Regular
Joined
Oct 19, 2005
Messages
138
I'm trying to write a macro to email the contents of the entire row for the cell that's been modified... I've already got the code written to send an email with just the Target.Value for the cell that's been changed...

rng = Target.Value

Puts the value of the cell that's been changed in the body of the email

rng = Range(Target.EntireRow).Value

doesn't put anything in the email... Any help is appreciated.

Thank yoU!
 

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.
That is not a valid statement. You cannot assign the values of a multi-cell range to a single variable like that.
You would need to iterate through the range, maybe assign it to an array.

How exactly do you want it to look anyway, if you are dealing with a multi-cell range?
Can you post a simple example of one row's data, and what you want the email body to look like?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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