+ Reply to Thread
Results 1 to 3 of 3

Paths, Folders and a confused VBA-noob

  1. #1
    Registered User
    Join Date
    12-29-2007
    Posts
    18

    Paths, Folders and a confused VBA-noob

    Hey guys,

    first of all, thanks for all the great posts, already helped me alot by just reading posts from other ppl

    Now to my problem:
    I've got a cell containing the path to a file, for isntance:
    C:\Users\Dude\Desktop\file.txt

    Now all i need is to extract the path to the folder which contains the file.txt

    So
    C:\Users\Dude\Desktop\file.txt
    should return:
    C:\Users\Dude\Desktop\

    Please help me, oh mighty VBA-Gurus out there

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,419
    Assuming cells is A1

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-29-2007
    Posts
    18

    Ha =d

    Andy Pope... you truly are the Pope (of VBA).
    Thanks alot :D
    had no idea it was that simpel :D thanks dude

+ 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