Be the first user to complete this post

  • 0
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:

  1. FileSystemObject : CopyFile Method
  2. FileSystemObject:OpenTextFile Method
  3. FileSystemObject : CreateTextFile Method
  4. FileSystemObject in Excel Macro
  5. FileSystemObject : CopyFolder Method