PDA

View Full Version : Creating a folder in the drive



vishalgupta
11-22-2011, 11:51 PM
i want to create a folder in a Drive(say D:) and suppose if " D: " drive doesn't exist then macro will handle the error and make the new folder in the existing drive( Say E:).

or

Search the existing drives in the system and create a new folder in it.

Can Anyone help me to create the macro for this.

Regards

Vishal

Tinbendr
11-23-2011, 07:29 AM
Login into the Knowledge Base (http://www.vbaexpress.com/kb/). Search for 'Directory'. There are several examples available.