Tuesday, 2 October 2012

How To Remove a Directory or Folder

Excel VBA Macro To  Remove a Directory or Folder
Sub RemoveDir()
Dim P As String
P = "C:\Documents and Settings\Administrator\My Documents"
'You Can Specify Your Desired Path Where to Remove a Directory or Folder
'Make Sure That a Directory or Folder Should Be Empty Befor Remove
RmDir P & "\" & "MyFolder"

End Sub

No comments:

Post a Comment

Hi User, Thank You for visiting My Blog. Please post your open Feedback only related to this Blog Posts. Please note that I cannot respond to the Anonymous Comments.

Subscribe to Blog Posts by Email

ExcelKingdom-Popular Posts