Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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
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
Default Folders in Excel Ladybug Setting up and Configuration of Excel 2 November 2nd 08 01:50 AM
How to open same name files in different folders in Excel? DrDisk7 Excel Discussion (Misc queries) 1 April 1st 08 02:35 PM
List Folders using Excel Andibevan[_4_] Excel Programming 3 December 15th 05 09:44 AM
Moving files between folders using VBA in Excel Paul Excel Programming 2 August 5th 05 02:25 PM
sav excel doc in various folders one click geo Excel Discussion (Misc queries) 1 January 30th 05 04:51 PM


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