Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating folder names from column data in excel
Hi,
I have a list of names in excel, approx 500 long. I need to create a folder for each one. How do i do it automatically? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating folder names from column data in excel
You would use the MkDir statement to do that... it requires you specify the
full path as its argument. This is the description provided in the help files... "Creates a new directory or folder. Syntax: MkDir path The required path argument is a string expression that identifies the directory or folder to be created. The path may include the drive. If no drive is specified, MkDir creates the new directory or folder on the current drive." -- Rick (MVP - Excel) "primed" wrote in message ... Hi, I have a list of names in excel, approx 500 long. I need to create a folder for each one. How do i do it automatically? Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating folder names from column data in excel
Try the below
Sub Macro() Dim cell As Range For Each cell In Range("A1:A500") MkDir "c:\" & cell.Text Next End Sub -- Jacob "primed" wrote: Hi, I have a list of names in excel, approx 500 long. I need to create a folder for each one. How do i do it automatically? Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating folder names from column data in excel
Excellent, Thankyou.
I had to try it a few times as the list contained data that went against file naming conventions. Thanks "Jacob Skaria" wrote: Try the below Sub Macro() Dim cell As Range For Each cell In Range("A1:A500") MkDir "c:\" & cell.Text Next End Sub -- Jacob "primed" wrote: Hi, I have a list of names in excel, approx 500 long. I need to create a folder for each one. How do i do it automatically? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Match file names listed in column with file names in folder | Excel Programming | |||
How to List the names of the subfolders present in the folder (path of folder is given in the textbox by user ) | Excel Programming | |||
I need an excel sheet to creating a new folder every month, and save a new spreadsheet every day, untill the next month, when it creates a new folder | Excel Programming | |||
Obtain folder names in a excel sheet | Excel Programming | |||
Change names of files in a folder to match names in Excel Column | Excel Programming |