Hi.
Does anyone know why Excel won't insert anything in the recipient field?
When I use it on my computer it works, but when a collague of mine is trying it it won't.
We are using Excel 2016
Could it be something about acsess?
This code is only part of the whole thing, but everything else are working.
Code:
' Prepare e-mail
.Subject = "Siga Tilbud" & " " & [B13] & " " & WorksheetFunction.Text(Date, "dd.mm.yyyy")
.To = Range("B18") ' <-- Put email of the recipient here
.CC = " " ' <-- Put email of 'copy to' recipient here
.Body = "Hei" & " " & [B12] & "." & vbLf & vbLf _
& "Vedlagt ligger tilbud som avtalt, hvis det er noe spørsmål ta kontakt." & vbLf & vbLf & vbLf & vbLf & "Vennlig hilsen / Best regards" & vbLf & vbLf & [B23] & vbLf & "Produktrådgiver / Instruktør" & vbLf & vbLf & "+47" & " " & [N20]
.Attachments.Add PdfFile
Code:
Does anyone know why Excel won't insert anything in the recipient field?
When I use it on my computer it works, but when a collague of mine is trying it it won't.
We are using Excel 2016
Could it be something about acsess?
This code is only part of the whole thing, but everything else are working.
Code:
' Prepare e-mail
.Subject = "Siga Tilbud" & " " & [B13] & " " & WorksheetFunction.Text(Date, "dd.mm.yyyy")
.To = Range("B18") ' <-- Put email of the recipient here
.CC = " " ' <-- Put email of 'copy to' recipient here
.Body = "Hei" & " " & [B12] & "." & vbLf & vbLf _
& "Vedlagt ligger tilbud som avtalt, hvis det er noe spørsmål ta kontakt." & vbLf & vbLf & vbLf & vbLf & "Vennlig hilsen / Best regards" & vbLf & vbLf & [B23] & vbLf & "Produktrådgiver / Instruktør" & vbLf & vbLf & "+47" & " " & [N20]
.Attachments.Add PdfFile
Code: