+ Reply to Thread
Results 1 to 3 of 3

Macro to check dynamic file path and create if does not exist

  1. #1
    Registered User
    Join Date
    07-29-2008
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Macro to check dynamic file path and create if does not exist

    Hi
    Having difficulty getting the code to check if the file path exist and if it doesn't that it creates the file path.
    However if the file path exists then it just adds the file.

    Any help is appreciated.


    Please Login or Register  to view this content.
    Last edited by Matso; 03-30-2011 at 01:58 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Macro to check dynamic file path and create if does not exist

    Hi Matso,

    The object sPath needs to be set as a Scripting.FileSystemObject

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    07-29-2008
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Macro to check dynamic file path and create if does not exist

    Works a treat pike

    Thanks

+ Reply to Thread

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