- Home
·
- Miscellaneous
·
- Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again
Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again
Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again, VB will show an error message. Therefore
API Declarations
'It could as well be a function and/or public and the procedural
'name need not be CreateFolder
Dim fso as New FileSystemObject
Dim fldr as Folder 'Note Folder is a reserved name
Rate Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again
(1(1 Vote))
Set fldr= fso.CreateFolder(foldername)'foldername is the name of the folder you
'wish to create. You can pasas it by
'value or by reference in in a Sub or
'function's heading declaration as in
'this example
'unload objects from memory
Set fso= nothing
set fldr=nothing
Exit Sub
FolderError:
Exit Sub
End sub
Fast method for creating a folder. Note: -If you create a folder once and attempt creating it again Comments
No comments yet — be the first to post one!
Post a Comment