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.