+ Reply to Thread
Results 1 to 2 of 2

Delete i Rows in Text File Import

  1. #1
    Registered User
    Join Date
    12-29-2005
    Posts
    4

    Delete i Rows in Text File Import

    I have a reoccurring daily delimited text file that has a variable sized header. The programmer uses a row with "------------" to indicate the end of the header. I'm trying to write some VBA to delete these rows prior to running it through the Import VBA Code. I've successfully used the below code to delete a fixed number of rows in another circumstance; however, I'm not sure where to begin to add a logic component to test for the existence of the end of header characters.

    Please Login or Register  to view this content.

    Could someone provide some direction or hint?
    Last edited by cswale; 10-26-2011 at 10:30 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: VBA: Delete i Rows in Text File Import

    Well, so long as there's always going to be file information after the header block you could go with ...

    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)

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