+ Reply to Thread
Results 1 to 2 of 2

Enhancing FIND/REPLACE script

  1. #1
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Enhancing FIND/REPLACE script

    Hi All,

    Following is a script for finding strings in ColA (find) and ColB (replace) of Sheet1, and replacing them in a range of columns in Sheet2 (A:H).
    It works fine, but slowly, for small portions of data e.g. 400 rows. But when it comes to a large number of columns and rows e.g. 30,000+ it does become extremely slow and may finish the job in more than two hours!!
    Can this code be enhanced, or restructured in order to accomplish the job in a much shorter time?
    I do appreciate any expert assistance with this matter.
    Always, many thanks in advance.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Enhancing FIND/REPLACE script

    Load both ranges into memory and conduct find and replace there. Then write range with changes back to worksheet.
    If possible post workbook example.

+ 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. help refining simple script that does find and replace
    By telstrareg in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-05-2011, 11:47 PM
  2. Script for Find Replace Operation
    By binar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2010, 01:05 PM
  3. Find and replace script
    By grandmastr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2010, 12:59 PM
  4. Find and replace script
    By mambotech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2009, 05:07 AM
  5. Enhancing an Excel Database
    By CharlesEric in forum Excel General
    Replies: 1
    Last Post: 07-24-2009, 12:44 PM
  6. Mass Find & Replace Script?
    By TyneeTom in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-24-2009, 03:41 AM
  7. Find and replace script / macro?
    By luu980 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-09-2009, 01:59 PM
  8. VBA Script. Find & Replace.
    By denis.samoilov in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2008, 11:14 AM

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