+ Reply to Thread
Results 1 to 5 of 5

Delete repetitive headers from imported text report

  1. #1
    Registered User
    Join Date
    03-17-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Delete repetitive headers from imported text report

    Hi,

    I'm working with an imported .txt report in Excel. On every page from that report, there is "header" information that I want to remove (delete and move up the rows) from the data. The first line of the header always start with the same text; so it is easy to find.

    What I'm trying to have excel do is starting from line 4 find the specific text ("LONGUEUIL") and delete (and move up) the row where this string is found along with the next for 4 rows (that's my hurdle) and loop until all the "headers" are gone!

    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Delete repetitive headers from imported text report

    easy to do, can you post a sample so we can write the code?

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Delete repetitive headers from imported text report

    this should work for you, change the column that "LONGUEUIL" is in from A to what ever also check that I spelled LONGUEUIL is spelled correctly

    avec plaisir

    -scott

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-17-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Delete repetitive headers from imported text report

    Even without a sample you got it!

    New to this VBA thing...

    Merci beaucoup (thanks a lot, in case you did not get it )

  5. #5
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597
    Bien sur, si vous plait marqe le thread solved:D

+ 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