Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
From excel to folders
I have a list of names (about hundred) in an excel spreadsheet. I need to
created a folder for each name. Is there any way to automatically create a folder from the list of names? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
From excel to folders
Sub CreateFolders()
Dim cell as Range On Error Resume Next for each cell in range("A1:A100") mkdir "C:\MyTopFolder\" & cell.Value if err.Number < 0 then cell.Interior.colorIndex = 3 err.clear end if Next On Error goto 0 End Sub Adjust to suit. -- Regards, Tom Ogilvy "Parisa" wrote: I have a list of names (about hundred) in an excel spreadsheet. I need to created a folder for each name. Is there any way to automatically create a folder from the list of names? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Default Folders in Excel | Setting up and Configuration of Excel | |||
How to open same name files in different folders in Excel? | Excel Discussion (Misc queries) | |||
List Folders using Excel | Excel Programming | |||
Moving files between folders using VBA in Excel | Excel Programming | |||
sav excel doc in various folders one click | Excel Discussion (Misc queries) |