VBA ChDrive Statement

ChDrive Description

Used to change the current drive.

Simple ChDrive Examples

ChDrive "D:\"

This makes “D” drive the current drive.

ChDrive Syntax

In the VBA Editor, you can type  “ChDrive(” to see the syntax for the ChDrive Statement:

The ChDrive statement contains an argument:

Drive: A string expression representing an existing drive.