Copies a file from a specified location into Microsoft Outlook's store and returns an Object representing the copied document.
expression Required. An expression that returns an Application object.
FilePath Required String. The path name of the object you want to copy.
DestFolderPath Required String. The location you want to copy the file to.
The following example copies a file from the user's hard drive to a folder in the user's Inbox.
Sub Copy() Dim olApp As Application Dim docWebpg As Object Set olApp = Outlook.Application Set docWebpg = olApp.CopyFile("C:\ftp\Index.htm", "Inbox\test") End Sub