+ Reply to Thread
Results 1 to 9 of 9

.Find Loop causing Excel to freeze

  1. #1
    Registered User
    Join Date
    02-18-2010
    Location
    virginia, usa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Exclamation .Find Loop causing Excel to freeze

    Hey all, I have a sheet set up as follows:

    A2: Actor Name
    B2: Movie Name
    F2: Scene 3
    A3: Actress Name
    B3: Movie Name
    F3: Scene 6
    ect...

    I first search for the movie name and then check cell to the left to see if it has the desired name. The problem arises when the first search result doesn't have the desired name left of it. I would like to keep searching the sheet for the movie and looking at the name until it is a match.

    Please Login or Register  to view this content.
    Thanks all for your help. This will conclude my macro once fixed!
    Last edited by trippin; 04-21-2010 at 09:54 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: .Find Loop causing Excel to freeze

    It would help me at least to visualise this if you could attach a sample workbook.

  3. #3
    Registered User
    Join Date
    02-18-2010
    Location
    virginia, usa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: .Find Loop causing Excel to freeze

    here is a dummy workbook.. If you can get the macro to work then i will be able to incorporate into my previous macro.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-18-2010
    Location
    virginia, usa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: .Find Loop causing Excel to freeze

    I've been waiting for 2 hours while trying to figure this out. Please help!

  5. #5
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: .Find Loop causing Excel to freeze

    Why don't you just use AutoFilter? What are you doing when you find the right entry?

  6. #6
    Registered User
    Join Date
    02-18-2010
    Location
    virginia, usa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: .Find Loop causing Excel to freeze

    good thinking! how do i autofilter the name "joe smith" in column A and then exit autofilter?

  7. #7
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: .Find Loop causing Excel to freeze

    Why not do it manually? Not sure you need a macro at all.

  8. #8
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: .Find Loop causing Excel to freeze

    hi Trippin,

    Try recording a macro of your actions ([alt + t + m + r]) as you step through them manually, stop recording & review the recorded code. This will give some sound base code (in the context of autofiltering a name) which can then be made more flexible. If you have any questions about making the code flexible, please include your recorded code with the questions.

    Edit: I posted the above before seeing Stephen's last post & I agree with him - is a macro really needed?

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  9. #9
    Registered User
    Join Date
    02-18-2010
    Location
    virginia, usa
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: .Find Loop causing Excel to freeze

    Yes I need a macro because I am using imacros to scrape data from a website for ever name in my workbook. I have 300 names and 50,000 movies. Can't do that manually . However, after seeing the post about autofilter I was able to get it working perfectly.

    I'm gonna mark this as solved by me with credits and rep to StephenR for his suggestion.

+ 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