Visual Basic for Applications Reference

ChDrive Statement

See Also Example Specifics

Changes the current drive.



The required driveargument is a string expression that specifies an existing drive. If you supply a zero-length string (""), the current drive doesn't change. If the drive argument is a multiple-character string, ChDrive uses only the first letter.