+ Reply to Thread
Results 1 to 2 of 2

Copy data and Deleting row

  1. #1
    Registered User
    Join Date
    09-25-2009
    Location
    Bangkok, Thailand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copy data and Deleting row

    Hi All,

    I am very new to Macro and VBA. Tried to look to old thread but have to admit that it is too difficult for me to understand the codes.

    Here is my request.

    I have 4 column.
    A. Product ID
    B. Po. NO.
    C. Pcs
    D. Amount
    Sample refers.
    I want to delete row where it has duplicate product ID. However, before deleting, I need data from col. C-D to be copied(move) to its previous row.

    Or another word.
    If Product ID - row x the same as row x+1 then, copy(move) data from col. C and col. D to row x.
    Then delete row x+1 and so on.

    I hope you guys can give me a hand on this. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Copy data and Deleting row

    Hi

    Try this:

    SAMPLE_Row_Delete.xlsm
    Click *, if my suggestion helps you. Have a good day!!

+ 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