+ Reply to Thread
Results 1 to 4 of 4

make a list of file name from a folder and sort accordingly

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    29

    Red face make a list of file name from a folder and sort accordingly

    hi there,

    i would like to have some help here.

    i would like to produce a list of file name from a folder.

    and i have done it partially which i get from my friend. this is the VBA code.


    Please Login or Register  to view this content.
    my problem is, i would like the data made in a particular subject for each column.

    let me give you an example.

    the file name is DATE_HN#12_PO#123456-01_PN#7890123_SN#4

    i would like to divide the data into three column.
    column A14-... DATE,column B14-... PO# (just the number only) and column C14-... PN# (just the number only)


    thank you in advance
    Last edited by Cutter; 08-06-2012 at 10:18 AM. Reason: Added code tags

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: make a list of file name from a folder and sort accordingly

    consider to use "Mid" function
    pseudo code: Mid(string,start position, length)
    i.e.
    Please Login or Register  to view this content.
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: make a list of file name from a folder and sort accordingly

    @ dragon_m0nsta

    Welcome to the forum.

    Please notice that code tags have been added to your post (instead of the colour highlight). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

  4. #4
    Registered User
    Join Date
    08-06-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: make a list of file name from a folder and sort accordingly

    thank you.

    ---------- Post added at 01:39 PM ---------- Previous post was at 01:38 PM ----------

    sorry for that. i will use the code tags after this.

    thank you for reminding

+ 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