+ Reply to Thread
Results 1 to 2 of 2

VBA - Compare and replace multiple times based on matched reference numbers

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Cool VBA - Compare and replace multiple times based on matched reference numbers

    I need some help please to refine this code. I need it to:

    1 - Compare sheet rows using reference numbers in column A in sheet "Updates", with reference numbers in column A
    of sheet "Existing".
    2 - If a match is found, then have the contents of the matching row from columns A through to X of Sheet "Updates", copied over to replace the same found in columns A through to X of Sheet "Existing".
    3 - Then repeat this action for ALL ROWS in Sheet "Updates" until the last row (which will vary) has been checked. Then report on how many rows were updated.

    I can get the code to replace the entries in ONE row (the last row) where a match is found, but not ALL rows. It also reports that ALL rows have been updated when they haven't.
    Attached Files Attached Files
    Last edited by Rabbitoh; 03-13-2014 at 06:23 PM. Reason: To do the post correctly and attached example

  2. #2
    Registered User
    Join Date
    07-24-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: VBA - Compare and replace multiple times based on matched reference numbers

    Refer http://www.excelforum.com/excel-prog...ce-report.html in this forum for solution

+ 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. Replies: 5
    Last Post: 09-25-2013, 12:31 AM
  2. Compare values based on multiple reference values
    By aknisha in forum Excel General
    Replies: 1
    Last Post: 09-25-2013, 12:17 AM
  3. Macro to compare multiple columns between 2 spreadsheets based on a single reference
    By chandra79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2012, 11:13 AM
  4. Formula to Compare and Replace Numbers Between two Sheets
    By leo2308 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 09-18-2009, 06:00 AM
  5. [SOLVED] replace the letters (for collumn) & numbers(row no.) of cell reference only
    By al007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-14-2005, 12:50 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