I have this code
Set myItem = myOlApp.CreateItem(olmailItem)
Set myAttachments = myItem.Attachments
Set lst = Me!filelist
With myItem
For Each vItem In lst.ItemsSelected
If Not IsNull(vItem) Then
ttt = lst.ItemData(vItem)
myItem.Attachments.Add ttt
End If
Next
Set lst = Nothing
myItem.To = mail_to_list
myItem.Subject = "Incoming Logistics Movement C/N # - " & Me.Consignment_Note_Number
myItem.HTMLBody = "<h1>" & "<b>" & "Incoming Consignment Notification - C/N # - " & Me.Consignment_Note_Number & "</b>" & "</h1>" & "<br>" & "<br>" & _
"Received From - " & "<b>" & Me.From_Company & "</b>" & "." & "Via - " & "<b>" & Me.Courier & "</b>" & "." & " On - " & "<b>" & Me.Date_Received & "</b>" & "." & "<br>" & "<br>" & _
"Number of Items - " & "<b>" & Me.Number_of_Items & "</b>" & "." & " Total Weight - " & "<b>" & Me.Weight & "</b>" & " Kg." & "<br>" & "<br>" & _
"Description - " & "<b>" & Me.Description_of_Goods & "</b>" & "." & "<br>" & "<br>" & _
"Attention To - " & "<b>" & Me.addressed_to & "</b>" & "<br>" & "<br>" & _
"P/O or Invoice # Reference - " & "<b>" & Me.po_ref & "</b>" & "<br>" & "<br>" & _
"Notes - " & "<b>" & Me.comments & "</b>" & "." & "<br>" & "<br>" & _
"Thank you." & vbCrLf & _
"Logistics Department. " & "<br>" & _
"<img src='c:\aaa\logo.bmp'>" & "<br>" & _
"Any views ."
myItem.Display
I got this from the macro in outlook that sets these options off, how do I convert this to be used in my vba code?
.ShowGrammaticalErrors = False
.ShowSpellingErrors = False
P.S.
I've done a lot of excel code via access vba, I hope it can be done the same way?