+ Reply to Thread
Results 1 to 3 of 3

Dir Help

  1. #1
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Dir Help

    I have the following code:

    Please Login or Register  to view this content.
    FilesInPath is always showing empty for some reason. Am I using Dir wrong? I'm always getting:

    Please Login or Register  to view this content.
    What I want is the path to the files. For example, if i = 3 then FilesInPath should look like this:

    Please Login or Register  to view this content.
    What am I doing wrong?
    Last edited by bishoposiris; 08-04-2009 at 11:49 AM.

  2. #2
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Re: Dir Help

    What I want is the path to the files. For example, if i = 3 then FilesInPath should look like this:
    Please Login or Register  to view this content.
    You have missed a path delimiter in your code then.
    Your existing code;
    Please Login or Register  to view this content.
    Would give you: X:\C&A Analysts Team\PF Process\1 Tally & PF's Work in Progress\Centers\VCollinsville*.xl*

    You need to change your code line to be:
    Please Login or Register  to view this content.
    Hope that helps
    Last edited by Phil_V; 08-04-2009 at 12:10 PM.
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not for you

  3. #3
    Forum Contributor
    Join Date
    08-03-2009
    Location
    Cary, NC
    MS-Off Ver
    Excel 2016
    Posts
    109

    Red face Re: Dir Help

    That was it! Thanks for your help.

+ 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