Results 1 to 7 of 7

Creating folderpaths based on variables

Threaded View

  1. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating folderpaths based on variables

    In post #2 I gave a "suggestion" on how you would call this macro based on your original macro.

    The MakeDirectories takes ONE parameter. It analyzes on long string and makes sure every folder exists, from the root directory all the way down to the final folder. The string should not include a file name, folders only.

    So, based on your original macro I made a guess at how to construct that one long path string and gave that example in post #2.

    So edit your macro to only pass one string. Your comma creates two string parameters, and only one is accepted. Give it another shot.

    BTW, do not edit the UDF itself the way you did, you made it unworkable. Go back to the original macro. The UDF version is further down on the sheet, you took the wrong version.
    Use the UDF version of that function, put it in the same module, then you can call it like so:
    MakeFolders (MainPath & "Outputs\" & Region & "\" & Branch)
    It will make every folder and subfolder in that path if necessary.
    Last edited by JBeaucaire; 10-20-2011 at 10:55 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