+ Reply to Thread
Results 1 to 5 of 5

Need Help for creating a Macro to extract specific data from all files in a folder.

  1. #1
    Registered User
    Join Date
    03-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    5

    Smile Need Help for creating a Macro to extract specific data from all files in a folder.

    Hi,

    I need help in creating a macro which will be pulling specific data from all the files available in a folder.

    Sample data is:

    <abc>
    <bcd>aa</bcd>
    <test>551348342675</test>
    <xyz>
    <dfg>
    <testtag>551348342675</testtag>
    <afda>M</afda>
    <afdd>I</afdd>
    <ghgf>04</ghgf>
    <tess>AB</tess>


    All the files in this folder have the text in the above mentioned format. This is not the whole text, there is lot more to it. I need the numbers between the <testtag> and </testtag> copied into a column on excel sheet. This text file will have more than one <testtag> entry and more than one of these numbers. I need all of them but not duplicate as the file may have duplicate entries too.

    Please help.

    Thanks,
    Ali

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

    Re: Need Help for creating a Macro to extract specific data from all files in a folder.

    attach a text file for testing
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    03-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    5

    Smile Re: Need Help for creating a Macro to extract specific data from all files in a folder.

    Thanks for the Quick Reply.

    I have attached a test file.

    Thanks a lot for helping.

    Ali
    Attached Files Attached Files

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

    Re: Need Help for creating a Macro to extract specific data from all files in a folder.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-09-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need Help for creating a Macro to extract specific data from all files in a folder.

    Thanks so much 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