Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks for the assistance. I am know getting an error on the line right before the "Next" line. I am trying to create a folder called C:\RESERVES on the hard drive with subfolders as listed in column A. Sub createfolders() ' ' CreateFolders Macro ' Macro recorded 3/22/2006 by JBW ' Dim cou As Integer, FolderStr As String, FileSys For cou = 1 To ActiveSheet.UsedRange.Rows.Count FolderStr = Format(Trim(Str(cou)), "00#") + "_" + ActiveSheet.Cells(cou, 1) Set FileSys = CreateObject("Scripting.FileSystemObject") FileSys.createfolder C:\ + RESERVES Next End Sub -- Jim15 ------------------------------------------------------------------------ Jim15's Profile: http://www.excelforum.com/member.php...o&userid=26300 View this thread: http://www.excelforum.com/showthread...hreadid=511949 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I create folders in explorer from an excel list | Excel Discussion (Misc queries) | |||
Please help to list folders and subfolders tree in Excel or Word | Excel Discussion (Misc queries) | |||
List Folders using Excel | Excel Programming | |||
Can anyone help me Create Excel list of files in windows folders | Excel Worksheet Functions | |||
Creating folders and subfolders from excel file list | Excel Discussion (Misc queries) |