Copy first visible cell in column D to email recipient bar

Jonlowery

New Member
Joined
Feb 6, 2019
Messages
6
As the title indicates I am trying to find a way to copy the first visible email address in a given column to the recipient bar inside of excel. I had no problem setting who the email would be CCd to as it is static. Further I have been able to copy from a cell into another cell in a dynamic manner based off of the data available, however copying into the outlook recipient bar is proving to be more of a challenge. Any advice you can give or resources you could point me towards perusing would be greatly appreciated!

Thank you in advance for taking time of your day to assist! :)

Code:
Sub Send_Range()
   ActiveSheet.Range("F12").Select
   With Worksheets("Pledge Notifications").AutoFilter.Range
       ActiveCell.Value2 = Range("A" & .Offset(1, 0).SpecialCells(xlCellTypeVisible)(1).Row).Value2
       End With
   Dim sht As Worksheet
Dim LastRow As Long
Dim LastColumn As Long
Dim StartCell As Range
Set sht = Worksheets("pledge notifications")
Set StartCell = Range("F8")
  Worksheets("Sheet1").UsedRange
  LastRow = sht.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
  sht.Range("F8:N" & LastRow).Select
  Selection.Copy
   ActiveWorkbook.EnvelopeVisible = True
   With ActiveSheet.MailEnvelope
      .Item.cc = "myname@abc.com"
      .Item.Subject = "Upcoming Redemption and Pledge Release Request-#NOSEC"
      .Item.Display
   End With
End Sub
 
Last edited by a moderator:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,958
Messages
6,175,633
Members
452,661
Latest member
Nonhle

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