#1   Report Post  
freekrill
 
Posts: n/a
Default creating directories


Hi,
Is it possible to include in a macro code to create and name a new
directory?

Cheers
Free


--
freekrill
------------------------------------------------------------------------
freekrill's Profile: http://www.excelforum.com/member.php...fo&userid=7561
View this thread: http://www.excelforum.com/showthread...hreadid=389802

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

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)


"freekrill" wrote
in message ...

Hi,
Is it possible to include in a macro code to create and name a new
directory?

Cheers
Free


--
freekrill
------------------------------------------------------------------------
freekrill's Profile:

http://www.excelforum.com/member.php...fo&userid=7561
View this thread: http://www.excelforum.com/showthread...hreadid=389802



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating custom list with a comma in it barnabel Excel Discussion (Misc queries) 6 January 10th 06 06:14 AM
Using dates for x-axis values as string instead of creating a scale cs_weirdo Charts and Charting in Excel 2 June 17th 05 12:20 AM
Skip some columns when creating a chart MikeJ Charts and Charting in Excel 3 April 15th 05 12:15 AM
stop creating email link when @ sign is present gregg Excel Discussion (Misc queries) 2 February 23rd 05 02:03 AM
Eliminate creating list that returns blank cells Marc Todd Excel Worksheet Functions 1 January 26th 05 09:58 PM


All times are GMT +1. The time now is 11:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"