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

Follow Me by Email

ExcelKingdom-Popular Posts

ExcelKingdom-Random Posts