I'm sending email from Excel file. And it always displays a warning message asking a user if he wants to allow it?.
Is it possible to disable this message?
The way I'm sending email from Excel is:
Dim x As Outlook.Application
Dim y As Outlook.MailItem
Set x = New Outlook.Application
Set y = x.CreateItem(olMailItem)
y.Subject = "Hello"
ActiveWorkbook.HasRoutingSlip = True
y.Recipients.Add ("email@server.com")
y.Body = "Hello there"
y.Send
Thanks in advance
Is it possible to disable this message?
The way I'm sending email from Excel is:
Dim x As Outlook.Application
Dim y As Outlook.MailItem
Set x = New Outlook.Application
Set y = x.CreateItem(olMailItem)
y.Subject = "Hello"
ActiveWorkbook.HasRoutingSlip = True
y.Recipients.Add ("email@server.com")
y.Body = "Hello there"
y.Send
Thanks in advance