KlausW
Active Member
- Joined
- Sep 9, 2020
- Messages
- 453
- Office Version
- 2016
- Platform
- Windows
Hi every one
I use this VBA code to send the Workbook I'm in by email. The file is sent as a file containing macro (xlsm), but I would like it to be sent without macro (xlsx). Some who can help.
Any help will be appreciated
Best Regards
Klaus W
I use this VBA code to send the Workbook I'm in by email. The file is sent as a file containing macro (xlsm), but I would like it to be sent without macro (xlsx). Some who can help.
Any help will be appreciated
Best Regards
Klaus W
VBA Code:
Sub Rektangelafrundedehjørner2_Klik()
Dim OutlookApp As Object
Dim OutlookMail As Object
Set OutlookApp = CreateObject("Outlook.Application")
Set OutlookMail = OutlookApp.CreateItem(0)
On Error Resume Next
With OutlookMail
.To = Range("o1").Text
.CC = ""
.BCC = ""
.Subject = Range("k9").Value
.Body = "17:10"
.Attachments.Add Application.ActiveWorkbook.FullName
.Send
End With
Set OutlookMail = Nothing
Set OutlookApp = Nothing
End Sub