+ Reply to Thread
Results 1 to 3 of 3

Compare entrie row and update only status in NEW Record.

  1. #1
    Registered User
    Join Date
    08-09-2010
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    5

    Compare entrie row and update only status in NEW Record.

    Hi All, [I have attached same files]
    I want to write a macro to Compare ENTRIE row in NEW_SHEET.xls.If any records present in OLD_Sheet.xls.Our macro should update Only Comments column [P:P] value in NEW_SHEET.xls status field.
    =================================================================
    IF (Any OLD_SHEET Record present in NEW_SHEET) then
    {
    Update NEW_SHEET.COMMENTS= OLD_SHEET.COMMENTS

    }
    Else
    {
    Print "NEW RECORD" in NEW_SHEET.COMMENTS
    }

    =================================================================
    Thanks
    Sugadev V.
    Attached Files Attached Files
    Last edited by vsugadev; 08-11-2010 at 03:58 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Compare entrie row and update only status in NEW Record.

    original question changed.
    Last edited by JBeaucaire; 08-11-2010 at 11:41 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-09-2010
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Compare entrie row and update only status in NEW Record.

    Quote Originally Posted by JBeaucaire View Post
    At first glance, it appears the ONLY value in the "Query Status" column is "Answered", so any updates between the two sheets would change nothing.

    Please provide sample sheets with actual examples of data needing updating, point out those examples specifically so we know where you're looking and what you expect to change.

    Hi JBeaucaire,
    Thanks for the reply. Sorry, we have to refer COMMENTS column not "Query Status" column.
    =============================================
    IF (Any OLD_SHEET Record present in NEW_SHEET) then
    {
    Update NEW_SHEET.COMMENTS= OLD_SHEET.COMMENTS

    }
    Else
    {
    Print "NEW RECORD" in NEW_SHEET.COMMENTS
    }
    =============================================

    Thanks
    Sugadev V.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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