+ Reply to Thread
Results 1 to 2 of 2

looping Find and Replace over two columns

  1. #1
    Registered User
    Join Date
    02-10-2013
    Location
    Frankfurt, Germany
    MS-Off Ver
    Excel 2003
    Posts
    57

    looping Find and Replace over two columns

    This macro currently searches for the text in sheet 3, A1 in the whole of sheet 1 and then replaces it with the text from sheet 3, B1:

    Please Login or Register  to view this content.
    Is it possible to make this loop through all the pairs of the cells in the A and B columns in sheet 3 until it hits an empty cell? I've tried implementing the loop, but it doesn't seem to work, and it doesn't work when I simply swap the Range("A1") refs for Cells(1,1) type refs as well.
    Last edited by Monkihunta; 03-21-2015 at 05:19 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: looping Find and Replace over two columns

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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] Lookup Columns for Find and Replace
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 07:38 AM
  2. Find and replace but replace value of cell 3 columns along
    By batchjb69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2014, 10:57 AM
  3. Find and replace columns with others of another sheet
    By Costasg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2011, 11:32 AM
  4. Find and replace based on columns .. Help!
    By khaos in forum Excel General
    Replies: 9
    Last Post: 12-28-2006, 10:21 AM
  5. [SOLVED] Looping macro needed to find intersections of rows and columns
    By Clifford Middleton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2006, 09:10 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