Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
afaubert
 
Posts: n/a
Default Creating folders and subfolders from excel file list

I need to create folders with subfolders from a listing that I have in an
excel document. Is there a macro that will do that for me instead of having
to go to the browser and use "FolderNewName" There are over a thousand
subfolders that I need to create and don't want to do it manually.

Thanks in advance to the gurus.

Allie :-)
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Creating folders and subfolders from excel file list


On Error Resume Next
For i = 1 To Cells(Rows.Count,"A").End(xlUp).Row
MkDir Cells(i,"A").Value
Next i

--

HTH

RP
(remove nothere from the email address if mailing direct)


"afaubert" wrote in message
...
I need to create folders with subfolders from a listing that I have in an
excel document. Is there a macro that will do that for me instead of

having
to go to the browser and use "FolderNewName" There are over a thousand
subfolders that I need to create and don't want to do it manually.

Thanks in advance to the gurus.

Allie :-)



  #3   Report Post  
Jay
 
Posts: n/a
Default Creating folders and subfolders from excel file list

I need to create folders with subfolders from a listing that I have in
an excel document. Is there a macro that will do that for me instead
of having to go to the browser and use "FolderNewName" There are
over a thousand subfolders that I need to create and don't want to do
it manually.


I've had similar tasks to do, but not this exactly. I didn't use a macro,
though. Instead, I made a DOS-style batch file using an extra column.

For example, suppose column A holds sub-folders you want to create inside
folder c:\whatever\

In B1, put
="MKDIR " & A1
and copy down for as many rows as you need.

Select column B and
Edit Copy

Paste into a new Notepad window, and "save as" inside the folder
c:\whatever\ with name
"temp.bat"
(include the quotes).

Then open folder c:\whatever\ and double-click on temp.bat.

Adapt or expand the example to suit your needs.

For more on the command language, a good reference is
http://home7.inet.tele.dk/batfiles/msdos7/
  #4   Report Post  
afaubert
 
Posts: n/a
Default Creating folders and subfolders from excel file list

BEAUTIFUL!!!! Thanks, works like a charm!

"Jay" wrote:

I need to create folders with subfolders from a listing that I have in
an excel document. Is there a macro that will do that for me instead
of having to go to the browser and use "FolderNewName" There are
over a thousand subfolders that I need to create and don't want to do
it manually.


I've had similar tasks to do, but not this exactly. I didn't use a macro,
though. Instead, I made a DOS-style batch file using an extra column.

For example, suppose column A holds sub-folders you want to create inside
folder c:\whatever\

In B1, put
="MKDIR " & A1
and copy down for as many rows as you need.

Select column B and
Edit Copy

Paste into a new Notepad window, and "save as" inside the folder
c:\whatever\ with name
"temp.bat"
(include the quotes).

Then open folder c:\whatever\ and double-click on temp.bat.

Adapt or expand the example to suit your needs.

For more on the command language, a good reference is
http://home7.inet.tele.dk/batfiles/msdos7/

  #5   Report Post  
afaubert
 
Posts: n/a
Default Creating folders and subfolders from excel file list

I will try and embed this in my macro and see if it works! Thanks Bob!!!
:-)

"Bob Phillips" wrote:


On Error Resume Next
For i = 1 To Cells(Rows.Count,"A").End(xlUp).Row
MkDir Cells(i,"A").Value
Next i

--

HTH

RP
(remove nothere from the email address if mailing direct)


"afaubert" wrote in message
...
I need to create folders with subfolders from a listing that I have in an
excel document. Is there a macro that will do that for me instead of

having
to go to the browser and use "FolderNewName" There are over a thousand
subfolders that I need to create and don't want to do it manually.

Thanks in advance to the gurus.

Allie :-)




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
List folders to file SS Excel Discussion (Misc queries) 13 August 28th 05 07:44 PM
Can I import a folder's contents as a dropdown list? Terp Excel Worksheet Functions 2 August 23rd 05 06:35 PM
Slight problem automating Excel in a service someone Setting up and Configuration of Excel 2 May 13th 05 10:04 PM


All times are GMT +1. The time now is 06:42 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"