Hi, Is it possible to include in a macro code to create and name a ne directory? Cheers Fre
F freekrill Jul 25, 2005 #1 Hi, Is it possible to include in a macro code to create and name a ne directory? Cheers Fre
B Bob Phillips Jul 25, 2005 #2 MkDir "C:\myTest\mySubTest" You need to be careful that the upper directories exist fisrt, so probably best to just try and create them On Error Resume Next MkDir "C:\myTest" MkDir "C:\myTest\mySubTest" MkDir "C:\myTest\mySubTest\mySubSubTest" On Error GoTo 0 -- HTH RP (remove nothere from the email address if mailing direct)
MkDir "C:\myTest\mySubTest" You need to be careful that the upper directories exist fisrt, so probably best to just try and create them On Error Resume Next MkDir "C:\myTest" MkDir "C:\myTest\mySubTest" MkDir "C:\myTest\mySubTest\mySubSubTest" On Error GoTo 0 -- HTH RP (remove nothere from the email address if mailing direct)