Consulting

Results 1 to 8 of 8

Thread: Copy row to the duplicate row - Macro

  1. #1
    VBAX Newbie
    Joined
    Jul 2010
    Posts
    5
    Location

    Question Copy row to the duplicate row - Macro

    Hi.. I have recently joined your forum. If anyone can crack this for me
    Here is the sequence of functions that I am trying to do:

    If there is any change in any row, search for duplicates in Column "B". If duplicate found then copy entire row (in which the change has been made), to this duplicate row.

    There are 7 columns & number of rows can be different every time.

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,055
    Location
    Which row gets copied over? The original or the duplicate?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Newbie
    Joined
    Jul 2010
    Posts
    5
    Location
    Quote Originally Posted by Aussiebear
    Which row gets copied over? The original or the duplicate?
    Thanks Aussiebear,

    the original one in which the change has been made (& that change triggered the whole procedure) to be copied to the duplicate one. The idea is to have similar rows for duplicate values in Clolumn B.

  4. #4
    If u could provide Sample Data and how exactly u want the result..
    It would be more clear to find solution.

  5. #5
    VBAX Newbie
    Joined
    Jul 2010
    Posts
    5
    Location
    Quote Originally Posted by khushii
    If u could provide Sample Data and how exactly u want the result..
    It would be more clear to find solution.

    Thanks a ton Khushii..
    Here is the attachment.

  6. #6
    VBAX Newbie
    Joined
    Jul 2010
    Posts
    5
    Location
    hey Khuhsi & Aussiebear.. looking to you for solution

  7. #7

    Post

    Quote Originally Posted by james22
    If there is any change in any row, search for duplicates in Column "B". If duplicate found then copy entire row (in which the change has been made), to this duplicate row.
    .
    Hi..here is my effort

    Function works as the following sequence
    If any row is changed, it searches for the Duplicate keywordID in Col B.
    If duplicate found.. then it copies the changed Row to Duplicate Role..

    [vba]"InputArea" = Sheet1!$A$3:$K$1048576 [/vba]

    I m not VBA Expert..but still tried my best.
    Hope it Helps

  8. #8
    VBAX Newbie
    Joined
    Jul 2010
    Posts
    5
    Location
    Hey Khushii.. That's awsome!! I appreciate your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •