| Blog Office VBA | Blog Excel | Blog Access | Blog Infochart |
Rapidinho! Com este código poderá criar uma pasta.
Sub MakeFolder()
Dim fso, f,f1,f2,f3Set fso = CreateObject ("Scripting.FileSystemObject")Set f = fso.CreateFolder ("c:\Bernardes_Folder_001")Set f1= fso.CreateFolder ("c:\Bernardes_Folder_002")Set f2= fso.CreateFolder ("c:\Bernardes_Folder_003")Set f3= fso.CreateFolder ("c:\Bernardes_Folder_004")Let CreateFolderDemo = f.PathLet CreateFolderDemo = f1.PathLet CreateFolderDemo = f2.PathLet CreateFolderDemo = f3.Path