Visual Basic for Applications Reference
RmDir Statement Example
This example uses the RmDir statement to remove an existing directory or folder.
' Assume that MYDIR is an empty directory or folder.
RmDir "MYDIR" ' Remove MYDIR.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This example uses the RmDir statement to remove an existing directory or folder.
' Assume that MYDIR is an empty directory or folder.
RmDir "MYDIR" ' Remove MYDIR.