Results 1 to 7 of 7

Macro to Create Folder\Sub Folder\SubFolder\

Threaded View

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    80

    Macro to Create Folder\Sub Folder\SubFolder\

    Hi,

    Can i please ask for assistant.

    I am trying to create a macro for button.

    Private Sub CommandButton1_Click()
    
    End Sub
    I know i have to use MKDIR but don't know how to write the code.

    Column B Column C
    Row 5 Drive Directory C
    Row 6 Main Folder Bills
    Row 7 Sub Folder 1 Insurance
    Row 8 Sub Folder 2 Car
    Row 9 Sub Folder 3 Ford
    Row 10 Sub Folder 4 Max
    Row 11 Sub Folder 5
    Row 12 Sub Folder 6
    Row 13 Sub Folder 7
    Row 14 Sub Folder 8
    Row 15 Sub Folder 9
    Row 16 Sub Folder 10

    As you see above user will enter the in column C drive\folder\sub folder\ etc.

    cell B3 shows wahts the path will look like.

    C:\Bills\Insurance\Car\Ford\Max\
    If the folder exsit the display as meassage "Folder Exist - Please recheck".

    I have attached file.
    Attached Files Attached Files

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