+ Reply to Thread
Results 1 to 3 of 3

Getting Filepath from Selected input file

  1. #1
    Forum Contributor
    Join Date
    02-23-2013
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    130

    Question Getting Filepath from Selected input file

    Hi All,

    Can someone help me in getting full file path from selected input file?

    I have a macro with text box and browse button.

    User can click on browse button and it will allow them to select only text files.

    Now for further processing I need to get the file path and file name in 2 different variables.

    Like if user selected C:/Temp/Test.txt

    Variable 1 should have C:/Temp
    Varialble 2 should have Test.txt

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,449

    Re: Getting Filepath from Selected input file

    "/" or "\" ????
    Please Login or Register  to view this content.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  3. #3
    Forum Contributor
    Join Date
    02-23-2013
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    130

    Re: Getting Filepath from Selected input file

    Thanks BSALV.. used the secon method and worked as expected

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Opening file and extracting file name and filepath
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 06:51 AM
  2. Store Selected FilePath Without Opening File
    By gammaman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2013, 11:02 AM
  3. [SOLVED] Trying to get the filepath on "Open", but get filepath of a temporary file instead
    By ianpwilliams in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-22-2013, 12:27 AM
  4. [SOLVED] Copying files from a selected filepath to a filepath mentioned in a worksheet's cell
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2012, 03:59 PM
  5. UNC filepath in Text file import VBA
    By Will31 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2010, 10:29 PM

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