Application.CopyFile Method
Office 2007
| Outlook Developer Reference |
Syntax
expression.CopyFile(FilePath, DestFolderPath)
expression A variable that represents an Application object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| 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. |
Return Value
An Object value that represents the copied file.
Example
The following Visual Basic for Applications (VBA) example creates a Microsoft Excel worksheet called 'MyExcelDoc.xlsx' and then copies it from the user's hard drive to the user's Inbox.
| Visual Basic for Applications |
|---|
|