+ Reply to Thread
Results 1 to 4 of 4

Find and Replace within Range

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Find and Replace within Range

    I want to look at the entire cell exactly for each row on SheetDB column A. If the word in each cell there is found exactly in any row in Column A on SheetX then I want the macro to replace the cell on SheetX to what is in SheetDB column B on the row where the word is matched.

  2. #2
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Find and Replace within Range

    Should add an example:

    So SheetDB cell A5 might contain 'John'. The macro would search for 'John' within column A on SheetX and if an exact match is found replace the cell on SheetX with what is in SheetDB cell B5.

  3. #3
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Find and Replace within Range

    Hi ScrappyDog

    This seems fairly simple, with probably many ways to accomplish

    For example, you can use the Range.Find method applied to Column A in SheetDB to find the cell , as a Range Object , with the string that you are searching for. Applying the .Row Property to that found Cell Range Object will give you the row of the Cell in Column B you wish to then copy to the SheetX

    So what have you tried, and where is the problem?

    Alan
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Find and Replace within Range

    Maybe:

    Please Login or Register  to view this content.

+ 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. Find and Replace All With Excel VBA- in a range
    By hudson andrew in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-09-2016, 01:35 PM
  2. [SOLVED] find and replace range vs list
    By 13lack13lade in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-16-2015, 02:02 AM
  3. Find and Replace values in a selected Range
    By jskasango in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2014, 09:11 AM
  4. [SOLVED] How to Find and Replace a Range of Data
    By Chad Bateman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-13-2014, 12:47 AM
  5. Find and Replace Data in a range of cells only
    By TomRet in forum Excel General
    Replies: 2
    Last Post: 01-05-2014, 12:09 AM
  6. Find and Replace Values in Range
    By ThatGirlinMS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2006, 12:45 PM
  7. Find/replace range
    By Corrine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2006, 09:40 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