Table of contents
TOC
Collapse the table of content
Expand the table of content

Copy Method (Visual Basic for Applications)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Description Copies a specified file or folder from one location to another. Syntaxobject. Copydestination [, overwrite ] The Copy method syntax has these parts:

PartDescription
objectRequired. Always the name of a File or Folder object.
destinationRequired. Destination where the file or folder is to be copied. Wildcard characters are not allowed.
overwriteOptional. Boolean value that is True (default) if existing files or folders are to be overwritten; False if they are not.

Remarks The results of the Copy method on a File or Folder are identical to operations performed using FileSystemObject.CopyFile or FileSystemObject.CopyFolder where the file or folder referred to by object is passed as an argument. You should note, however, that the alternative methods are capable of copying multiple files or folders.

© 2018 Microsoft