#1   Report Post  
Posted to microsoft.public.excel.misc
Mike
 
Posts: n/a
Default Autocreate folders

Is there a way to auto create windows explorer folders from an excel
spreadsheet? Like say we have a customer name list in the first column and
would like windows folders generated from that first column. TIA

Mike


  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Autocreate folders

You could try a macro. You will need to change the Path, worksheet name,
beginning cell row/column of your range, and the ending cell column number

Sub MakeFolder()
Const Path As String = "I:\Excel\" '<==Change

On Error Resume Next
With Worksheets("Sheet2") '<==Change
With .Range(.Cells(1, 1), _ '<==Change
.Cells(.Rows.Count, 1).End(xlUp)) '<==Change
For Each rngcell In .Cells
If Not IsEmpty(rngcell) Then _
MkDir (Path & rngcell.Value)
Next rngcell
End With
End With

End Sub


"Mike" wrote:

Is there a way to auto create windows explorer folders from an excel
spreadsheet? Like say we have a customer name list in the first column and
would like windows folders generated from that first column. TIA

Mike



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
linked cells to workbooks in different folders Luigi Excel Discussion (Misc queries) 0 January 25th 06 04:20 PM
Help with Creating folders on Save Alarmbloke Excel Discussion (Misc queries) 3 December 22nd 05 06:00 PM
Excel VERY slow to move between folders in OPEN dialogue box Jamie Furlong Excel Discussion (Misc queries) 6 September 3rd 05 09:47 AM
Read only folders bicnut Excel Discussion (Misc queries) 2 July 12th 05 07:37 PM
Excel 2003 "File Open": how keep folders at top with sort by Date. Aging Analyst Excel Discussion (Misc queries) 1 December 3rd 04 03:26 AM


All times are GMT +1. The time now is 12:37 PM.

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"