I know almost nothing about writing code in VBA. I copy and pasted the following code to open a template.
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Sub MakeItem()
Set newItem = Application.CreateItemFromTemplate("C:\Users\folder\template.oft")
newItem.Display
Set newItem = Nothing
End Sub
It works well except that every time I send the completed email it opens up VBA and displays the following error "Compile error: Expected End Sub" Does anybody know how I could fix this?
**edit**
This error message not only pops up when running the macro to send an email, but whenever I send any email.
Bookmarks