Email@email.com was just an example email address just like Other folder is an example folder. Since I don't know what email sending to and what folder you are moving the email to.
There are numerous ways around the Outlook security patch. Using Outlook Redemption is one way, another is to use Express Click Yes. Take a look on the slipstick web site.
You create one by running SelfCert.exe (it comes with Outlook)
Digital Signing/Certificates for Outlook are explained here
You will get a pop-up the first time you use code with a digital certificate asking if you wish to trust this certificate.
Set the DisplayAlerts property equal to False before saving the file.
Then reset it back to True.
BTW DisplayAlerts is a property of the Application Object
Source: is a string representing the full path of the file. (It can also be an attachment object)
Type: is an Integer representing the type of attachment olByValue(1), olByReference(4), olEmbeddedItem(5)
olByValue: Embed the attachment in the item
olByReference: Create a shortcut to an external file
olEmbeddedItem: Create a shortcut to an Outlook item
Position: is an Integer representing the position of the attachment in the body of the attachment.
DisplayName is a string representing the name displayed for the attachment. It is only valid if your Type is olByValue.
Obviously if you are able to add a picture you've got the basic idea of how to interact with word. So basically you need to know how to manipulate a range object.
Just set your range object equal to the Content of the Document object. Insert a Carriage return and linefeed. Then set the start of your range object to its end. You are now ready to add the picture.
objWdRng = objWdDoc.Content
'This line is optional (more for formatting)
objWdRng.InsertAfter vbCrLf
objWdRng.Start = objWdRng.End
objWdRng.InlineShapes.AddPicture "C:\YourFile.jpg"
Eric Coleman:
Why don't you check out the owner's website and read their privacy policy or you could probably ask Gabriel.
http://www.inetinteractive.com/
The copy and paste method are methods of the following Objects : Field, FormField, Frame, MailMergeField, PageNumber, Range, or Selection object.
Most likely you'll want the Range Object