+ Reply to Thread
Results 1 to 4 of 4

Jump straight to specific row number 1,234,567 (within a Text File

  1. #1
    Edmund
    Guest

    Jump straight to specific row number 1,234,567 (within a Text File

    Via VBA code, is it possible to jump straight to a specific row number within
    a ".txt" file?

    My database is 250MB in size. There are >4 million rows in it. Presently, my
    macro cycles through from top to bottom, then repeat cycle until every listed
    part number is found. This is pain staking.

    Pls show me the codes, if any.

    --
    Edmund
    (Using Excel 2000)

  2. #2
    derobin
    Guest

    Re: Jump straight to specific row number 1,234,567 (within a Text File

    try skipline

    For i = 0 to 4
    StdIn.SkipLine
    Next

    lg
    Robin

    Edmund schrieb:

    > Via VBA code, is it possible to jump straight to a specific row number within
    > a ".txt" file?
    >
    > My database is 250MB in size. There are >4 million rows in it. Presently, my
    > macro cycles through from top to bottom, then repeat cycle until every listed
    > part number is found. This is pain staking.
    >
    > Pls show me the codes, if any.
    >
    > --
    > Edmund
    > (Using Excel 2000)



  3. #3
    NickHK
    Guest

    Re: Jump straight to specific row number 1,234,567 (within a Text File

    Edmund,
    How are you using your text file in Excel/VBA ?
    Depending on the above, SEEK may be an option.

    NickHK

    "Edmund" <Edmund@discussions.microsoft.com> wrote in message
    news:505B8860-108C-4E71-AB3F-40001BE76F40@microsoft.com...
    > Via VBA code, is it possible to jump straight to a specific row number

    within
    > a ".txt" file?
    >
    > My database is 250MB in size. There are >4 million rows in it. Presently,

    my
    > macro cycles through from top to bottom, then repeat cycle until every

    listed
    > part number is found. This is pain staking.
    >
    > Pls show me the codes, if any.
    >
    > --
    > Edmund
    > (Using Excel 2000)




  4. #4
    MH
    Guest

    Re: Jump straight to specific row number 1,234,567 (within a Text File

    Why don't you use a database to store your database?

    MH

    "Edmund" <Edmund@discussions.microsoft.com> wrote in message
    news:505B8860-108C-4E71-AB3F-40001BE76F40@microsoft.com...
    > Via VBA code, is it possible to jump straight to a specific row number
    > within
    > a ".txt" file?
    >
    > My database is 250MB in size. There are >4 million rows in it. Presently,
    > my
    > macro cycles through from top to bottom, then repeat cycle until every
    > listed
    > part number is found. This is pain staking.
    >
    > Pls show me the codes, if any.
    >
    > --
    > Edmund
    > (Using Excel 2000)




+ 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