marcvanderpeet12
Member
Dear all,
I've written the following VBA text which allows me to send part of an excel file automatically by email:
Sub Send_Range()
ActiveSheet.Range("A1:B5").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = "Dit is een voorbeeldwerkblad."
.Item.To = "marc.van.der.peet@achmea.nl"
.Item.Subject = "Onderwerp"
.Item.Send
End With
End Sub
Thing is now that ideally I want to create pop-up boxes where I can insert information (to change the variables)
So instead of copying the range A1:B5 I want to be able to insert the range myself. Same goes for the email adress I want to sent the copy to (so I want to enter manually the email adress in an email box).
Anybody suggestions on how I can achive this?
Dear regards,
Marc
I've written the following VBA text which allows me to send part of an excel file automatically by email:
Sub Send_Range()
ActiveSheet.Range("A1:B5").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Introduction = "Dit is een voorbeeldwerkblad."
.Item.To = "marc.van.der.peet@achmea.nl"
.Item.Subject = "Onderwerp"
.Item.Send
End With
End Sub
Thing is now that ideally I want to create pop-up boxes where I can insert information (to change the variables)
So instead of copying the range A1:B5 I want to be able to insert the range myself. Same goes for the email adress I want to sent the copy to (so I want to enter manually the email adress in an email box).
Anybody suggestions on how I can achive this?
Dear regards,
Marc