Be the first user to complete this post
|
Add to List |
FileSystemObject : CreateFolder Method
Description:
This function creates a Folder.
Format :
objectOfFileSystemObject. CreateFolder(foldername)
Arguments:
- objectOfFileSystemObjectAs the names says, it’s a FileSystemObject.
- foldername
- Mandatory
- Type: String
- Folder will be created with the same name what you will pass here.
Function FnCreateFolder(strCompleteFolderPath) Set fso = CreateObject("Scripting.FileSystemObject") Set objFolder = fso. CreateFolder(strCompleteFolderPath) End Function
Call FnCreateFolder ("c:\New Folder")
Also Read:
- Excel-VBA : Insert Multiple Images from a Folder to Excel Cells
- FileSystemObject : GetExtensionName Method
- FileSystemObject:OpenTextFile Method
- FileSystemObject : GetFile Method
- FileSystemObject : GetParentFolderName Method