Welcome to the Board!
You can use the Survey tool in the Excel Web App.
Creating surveys with the Excel Web App in Office 365 for education - Education - Site Home - MSDN Blogs
HTH,
Sub Mail_small_Text_Outlook(names() As String, mailAddrs() As String)
For i = 0 To UBound(names, 1) - 1
Dim intro As String
Dim message As String
Dim subject As String
Dim firstName() As String
firstName = Split(names(i), ",")
intro = "Dear " + firstName(1) + "," + vbNewLine + vbNewLine
subject = "Your Biometrics test is due"
'message = "This is line 1" & vbNewLine & _
"This is line 2" & vbNewLine & _
"This is line 3" & vbNewLine & _
"This is line 4"
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = mailAddrs(i)
' .CC = "immigration@relocate.dk"
.BCC = ""
.subject = subject
.Body = intro + GetBoiler("C:\Users\reuben@relocate.dk\Desktop\Biometrics Email.txt")
'.HTMLBody = intro + GetBoiler("C:\Users\reuben@relocate.dk\Desktop\Biometrics appointment due.htm") & .HTMLBody
'You can add a file like this
'.Attachments.Add ("C:\test.txt")
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Next i
End Sub
Function GetBoiler(ByVal sFile As String) As String
'**** Kusleika
Dim fso As Object
Dim ts As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso.GetFile(sFile).OpenAsTextStream(1, -2)
GetBoiler = ts.readall
ts.Close
End Function
Sub Mail_small_Text_Outlook(names() As String, mailAddrs() As String)
For I = 0 To UBound(names, 1) - 1
Dim intro As String
Dim message As String
Dim subject As String
Dim firstName() As String
firstName = Split(names(I), ",")
intro = "Dear " + firstName(1) + "," + vbNewLine + vbNewLine
subject = "Your Biometrics test is due"
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
On Error Resume Next
With OutMail
.To = mailAddrs(I)
' .CC = "immigration@relocate.dk"
.BCC = ""
.subject = subject
.Body = intro + GetBoiler("C:\Users\reuben@relocate.dk\Desktop\Biometrics Email.txt")
.SendUsingAccount = OutApp.Session.Accounts.Item(2)
.Send 'or use .Display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Next I
End Sub