Closed Thread
Results 1 to 2 of 2

import txt file into separate excel sheets and look for a specific row to add

  1. #1
    Registered User
    Join Date
    02-09-2016
    Location
    Bucharest
    MS-Off Ver
    2013
    Posts
    53

    Smile import txt file into separate excel sheets and look for a specific row to add

    Hello Friends,


    I have a nasty VBA code that opens a *.txt file; searches inside the txt file for specific information limitted inside % ... %%% characters and paste them into separately sheets.
    Also, It takes the first 8 rows of the file and add them into a new sheet, GENERAL.

    What i'm trying to do, when loading the file, besides the above tasks, to search for 2 specific rows (with no fix position) and if they exist inside the *.txt file, to add them as well into the GENERAL sheet (position B12, B13).

    The challange is that the rows are like this:
    current-value-function1=88
    current-value-function2=99

    The rows to be added contains a fix part "current-value-function1=" + "number"

    Can you please help me with the code sequence to add into the below one, to find these rows and insert them into the GENERAL sheet?

    Thank you




    Please Login or Register  to view this content.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: import txt file into separate excel sheets and look for a specific row to add

    Thread closed at OP's request - now in commercial services section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Import specific data from another excel file?
    By devensonas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2014, 08:56 AM
  2. Import text file and split data into specific sheets with Applet names
    By swethachepur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2014, 09:07 AM
  3. how to import specific row from a txt file into excel using macro ?
    By kumar77 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2013, 07:07 AM
  4. Import text file into excel and split data in specific sheets
    By chirilaionut in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-03-2013, 07:04 AM
  5. Import specific sheets from different file.
    By fatalcore in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2011, 09:44 AM
  6. Replies: 0
    Last Post: 08-10-2010, 07:00 AM
  7. macro to import specific sheets with value in a file
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2009, 10:55 AM

Tags for this Thread

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