Results 1 to 15 of 15

Excel crashes while macro processes large text file

Threaded View

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    Chennai, India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Excel crashes while macro processes large text file

    Hey,

    I have a macro which performs a search operation in a text file. The code accesses the text file (without actually opening it) and searches for a particular search text (provided by the user) by going through the entire text file line by line.

    The macro runs fine for a text file of size aound a 100KB. The problem comes when the user provides a file of 4MB or more. The excel hangs, or sometimes just plain crashes.

    The whole purpose of this macro is to search through large volumes of data (in a single text file). So when it crashes... well lets just say its a big problem.

    Is there any way to prevent this ?? Any help would be highly appreciated. I'm really lost on as to how to go about this problem....

    Also posted here
    Last edited by RitaG; 10-05-2012 at 10:35 AM.

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