Charlotte Langley
New Member
Hey guys,
I have previous macros set up to send a range of my active sheet via excel, which is the basic coding below:
What I need this new one to do is send multiple ranges from the active sheet, which will send in the body of the email below each other.
For example I need to send ranges A1:K39 & also A40:K52, but obviously ignore the cells inbetween the two ranges.
Is this possible using my code above?
I'm a newbie, and my knowledge is very basic.
Thanks.
I have previous macros set up to send a range of my active sheet via excel, which is the basic coding below:
Code:
Sub Send_Range()
' Select the range of cells on the active worksheet.
ActiveSheet.Range("A1:K39").Select
' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True
' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = "######"
.Item.To = "#####"
.Item.Subject = "######"
.Item.Send
End With
End Sub
For example I need to send ranges A1:K39 & also A40:K52, but obviously ignore the cells inbetween the two ranges.
Is this possible using my code above?
I'm a newbie, and my knowledge is very basic.
Thanks.
Last edited by a moderator: