+ Reply to Thread
Results 1 to 6 of 6

Extracting Specific Correlating Lines of Code.

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    Central, Pennsylvania
    MS-Off Ver
    2013
    Posts
    3

    Question Extracting Specific Correlating Lines of Code.

    Hi all. I am brand new to this forum, and Excel programming in general, so please excuse any repeat questions!

    I am trying to pull cycle time information out of a .txt file (sample attached)

    How can I write a code to pull the information from lines with the text 'PARTNAME' and 'TOTALTIMEAVERAGE'

    This information needs to stay related to each other. For Example, PARTNAME=AFM3690 has a TOTALTIMEAVERAGE=9027

    Ideally I would like to put this info into 2 columns like this..

    Part Name Cycle Time (ms)
    AFM3690 9027

    Thank you for any help you can offer, I am drowning in code jargon!


    61-815-8.5 BARS.txt

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Extracting Specific Correlating Lines of Code.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-08-2015
    Location
    Central, Pennsylvania
    MS-Off Ver
    2013
    Posts
    3

    Re: Extracting Specific Correlating Lines of Code.

    That is amazing thank you!

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Extracting Specific Correlating Lines of Code.

    You are welcome.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED

  5. #5
    Registered User
    Join Date
    06-08-2015
    Location
    Central, Pennsylvania
    MS-Off Ver
    2013
    Posts
    3

    Re: Extracting Specific Correlating Lines of Code.

    If I wanted to do this to multiple files, is it just a matter of changing the the fn. application String to pull multiple files? Also I am trying to convert these times from milliseconds to seconds, and it will not let me do that with a formula. How could I code that to convert the information before it hits the spreadsheet?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Extracting Specific Correlating Lines of Code.

    Do you mean
    Please Login or Register  to view this content.

+ 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] Extracting specific lines of info from several works into one worksheet
    By craigten in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-06-2013, 04:27 AM
  2. [SOLVED] Email code. How to format specific lines in bold.
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2012, 05:20 AM
  3. Replies: 3
    Last Post: 02-27-2010, 08:48 AM
  4. Extracting a specific number of lines from a file
    By paddyberk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2010, 12:08 PM
  5. Extracting specific lines from datasheet
    By SlipperyPete in forum Excel General
    Replies: 5
    Last Post: 12-21-2006, 10:54 AM

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