Tuesday, October 2, 2012

How to Create a Directory or Folder with Excel VBA Macro

Excel VBA Macro to Make a Directory or Folder
Sub MakeDir()
Dim P As String
P = "C:\Documents and Settings\Administrator\My Documents"
'You Can Specify Your Desired Path Where to Create a Directory or Folder
MkDir P & "\" & "MyFolder"
End Sub

Thanks,Tamatam

No comments:

Post a Comment

Hi User, Thank You for visiting My Blog. Please post your genuine Feedback or comments only related to this Blog Posts. Please do not post any Spam comments or Advertising kind of comments which will be Ignored.