Menu
(1 votes, average: 5.00 out of 5)
Loading...
The FileSystemObject VBA MoveFile function moves one or multiple files from current to destination location.
VBA FileSystemObject Methods
Moves a specified file or folder from one location to another. A File or Folder are identical to operations performed by using FileSystemObject.
VBA MoveFile Syntax
source
Current location of one or multiple files. You can use wildcards such as *.* to specify more than a single file matching the pattern, however, only matching part of the last component of the file path.
destination
The destination location to which one or multiple files are to be moved.
Current location of one or multiple files. You can use wildcards such as *.* to specify more than a single file matching the pattern, however, only matching part of the last component of the file path.
destination
The destination location to which one or multiple files are to be moved.
VBA MoveFile Examples
2 4 6 | 'Move OldFolderName to C:Dst and rename to NewFolderName fso.MoveFile'C:OlderFolderNameHello.txt',C:DstNewFolderNameNewFileName.txt' 'Move all files matching wildcard to C:Dst. This will keep their names |
|