Results 1 to 3 of 3

Creating Multiple Folders

Threaded View

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Creating Multiple Folders

    I have in A1 the root folder, for example C:\Temp\MyFolders
    From A4 I have a list of the folder I want to create.

    I trying to get code working but with no luck
    Can someone please assist
    Sub CreateFolders()
    Dim FolderName As String
    For i = 1 To Range("A4").End(xlDown).Row
    FolderName = Range("A1").Value & Cells(i, 1)
    MkDir FolderName
    Next
    End Sub
    Last edited by CobraLAD; 09-15-2011 at 01:05 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1