Hi There,
I had code that worked for copying worksheet into an email but I now need to shorten that to everything in columns A to J until the cell is blank in A then copy and paste to email.
This is what I have managed so far, any and all help appreciated.
Private Sub Email_Click()
Dim r As Range
Application.ScreenUpdating = False
For Each r In .Range("A1", .Range("A1").End(xlDown))
.Range(.Cells(r.Row, "A"), .Cells(r.Row, "l")).Copy
With ActiveSheet.MailEnvelope
.Item.To = "Me"
End With
End Sub
I had code that worked for copying worksheet into an email but I now need to shorten that to everything in columns A to J until the cell is blank in A then copy and paste to email.
This is what I have managed so far, any and all help appreciated.
Code:
Dim r As Range
Application.ScreenUpdating = False
For Each r In .Range("A1", .Range("A1").End(xlDown))
.Range(.Cells(r.Row, "A"), .Cells(r.Row, "l")).Copy
With ActiveSheet.MailEnvelope
.Item.To = "Me"
End With
End Sub
Code: