+ Reply to Thread
Results 1 to 8 of 8

Find and Replace Macro stops working

  1. #1
    Forum Contributor
    Join Date
    07-24-2008
    Location
    San Antonio, Texas
    Posts
    118

    Find and Replace Macro stops working

    I created a macro that updates formulas on different sheets for about 70 rows. For some reason the formula will run through about half of the rows and then runs through the rest of the rows really quickly and does not complete the find and replace.

    I have found if I change the macro to do one sheet at a time I can manage to get about 3 sheets done before it does the same thing.

    I have tried to rerun the macro after it stops completing the find and replace and it does not work. However if I save and close the workbook and reopen the workbook and play the macro then it will complete the find and replace on the rows it did not finish. However just doing a save does not work the workbook has to be closed and reopened.

    It is almost like the macro is using all the memory....filling the clipboard...or Excel has a maximum on find and replace. I am at a complete loss as the macro worked last month when I ran it. To the best of my knowledge there has been no changes to Excel since last month.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Find and Replace Macro stops working

    Please Login or Register  to view this content.
    Note: It would be faster if you could reduced the range. I.E. a specific cell rather than the whole row
    Last edited by stnkynts; 04-02-2015 at 10:05 AM.

  3. #3
    Forum Contributor
    Join Date
    07-24-2008
    Location
    San Antonio, Texas
    Posts
    118

    Re: Find and Replace Macro stops working

    Could the macro look at just those 9 sheets?

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Find and Replace Macro stops working

    Are the sheets actually named "1", "2", etc or are you trying to reference their index number?

  5. #5
    Forum Contributor
    Join Date
    07-24-2008
    Location
    San Antonio, Texas
    Posts
    118

    Re: Find and Replace Macro stops working

    The sheets are named 1, 2, etc.

  6. #6
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Find and Replace Macro stops working

    Please Login or Register  to view this content.
    Note: Don't forget the finish filling out the arrays so that they cover all the parameter that you need.

  7. #7
    Forum Contributor
    Join Date
    07-24-2008
    Location
    San Antonio, Texas
    Posts
    118

    Re: Find and Replace Macro stops working

    Thank you stnkynts. I used your code and finished filling in the arrays. Once I ran the macro it took about 8 minutes and completed 3 sheets and stopped on the 18th row on the 4th sheet. I tried to run the macro immediately after it stopped and the macto it took about 2 seconds for the macro to complete and nothing was completed. After saving the workbook and closing and reopening I was able to run the macro again and complete the rest of sheet 4, 5, and almost all of sheet 6 before it stopped.

    I am at a complete loss. Maybe the only solution is to open and close the spreadsheet.

  8. #8
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Find and Replace Macro stops working

    Submit your worksheet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VB Macro - Find & Replace Characters not working
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-13-2014, 05:25 PM
  2. [SOLVED] Find and Replace Macro not working for sheet Referance in formula
    By Lotrking1010 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-31-2012, 08:15 AM
  3. Find/Replace macro not working on all relevant cells.. Hidden formatting?
    By heather1209 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2012, 09:24 AM
  4. Replies: 7
    Last Post: 03-03-2008, 11:48 AM
  5. Find Method Stops Working in Excel 2000
    By nfk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2005, 03:31 PM

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