Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Hondo Chalthoum    on Nov 30 In MS Office Category.

  
Question Answered By: Omar Walker   on Nov 30

Did you put

ChDir "\"

in a line following your

ChDrive "C:\" ?

If you did not the active directory  for C is not changed by the ChDrive
statement, that only changes the drive. Because of that the new dir is being
created in wherever in the C drve tree the active directory was. Then you
change to a place other than where you have created it.

An alternative would be to make your

MkDir "ABC"

MkDir "C:\ABC"

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Problem with Excel VBA Creating Subdirectory Or get search suggestion and latest updates.


Tagged: