+ Reply to Thread
Results 1 to 3 of 3

Copying filepath onto a cell

  1. #1
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Copying filepath onto a cell

    What I have:

    Used a code and copied the filenames of the files from a particular folder onto an excel sheet
    Code used :
    Please Login or Register  to view this content.
    Courtesy : above code is a modified version of a code got from the net.



    What I need :


    The above code only copies the file names onto column 2. I wanted help in finding a way as to how to display the file path from where the above file names were taken ?


    Any help is much appreciated...


    Thanks in advance
    Last edited by subbby; 09-01-2012 at 11:44 AM. Reason: solved

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Copying filepath onto a cell

    ActiveCell.Offset(xRow) = xDirect$ & xFname$
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    08-24-2012
    Location
    Hollidaysburg, Pa
    MS-Off Ver
    Excel 2010
    Posts
    398

    Re: Copying filepath onto a cell

    Quote Originally Posted by patel45 View Post
    ActiveCell.Offset(xRow) = xDirect$ & xFname$
    thanks...

    as I wanted it on a seperate coulmn i used this

    Please Login or Register  to view this content.



    -subbby

+ 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