VBA - send email with multiple ranges in body with 'If Target.Value'

Sap_Jas

New Member
Joined
Aug 2, 2013
Messages
26
Hi,

I am trying to have a VBA to send out an email if when several rows which have a special character in column A,
The VBA I have to add this character is : (wingding font for the check symbol)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Target, Range("A2:A1000")) Is Nothing Then
If Target.Value = "ü" Then Target.Value = "" Else Target.Value = "ü"
Target.Offset(0, 1).Select
End If
End Sub


Which gives me this (with conditional formatting to change the color)

1586990139386.png


What I would like to do is simply have the VBA in a button to generate the mail (I know this bit), but, then insert into the 'Body' of the mail, (ONLY) the ranges B:I of each of the lines selected)

Could anyone please help me to understand how to do this ?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi Again, maybe i wasn't explaining correctly, here is a screenshot of what I would like to do, I can send the excel file if needed.
1587146366337.png
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,616
Latest member
intern444

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