Airwave
New Member
- Joined
- Aug 20, 2019
- Messages
- 3
I am trying to get the below to work in columns that are hidden from view in Excel. It does work, but only if the columns are not hidden. Is there a way around this?
Also, in the same workbook, I have a script that copies a selection into a new Outlook e-mail. I want the selection to open in a new Outlook mail window so the user can check it before pressing send. Someone suggested using .Display instead of .Send, but this does not work; it still goes straight to send.
Code:
With Sendrng
.Parent.Select
Set Rng = ActiveCell
.Select
ActiveWorkbook.EnvelopeVisible = True
With .Parent.MailEnvelope
For Each cell In Columns("P").Cells.SpecialCells(xlCellTypeVisible)
If cell.Value Like "*@*" Then
EmailAddr = EmailAddr & ";" & cell.Value
End If
Also, in the same workbook, I have a script that copies a selection into a new Outlook e-mail. I want the selection to open in a new Outlook mail window so the user can check it before pressing send. Someone suggested using .Display instead of .Send, but this does not work; it still goes straight to send.
Code:
With .Item
.SentOnBehalfOfName = "emailaddresshere"
.To = EmailAddr
.CC = "emailaddresshere"
.BCC = ""
.Subject = "E-mail"
.Send
End With