+ Reply to Thread
Results 1 to 3 of 3

VBA to not copy data to other worksheet when it duplicates the item id

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    VBA to not copy data to other worksheet when it duplicates the item id

    Hello,

    I have a macro code to copy new item from New Item List worksheet to Item Detail worksheet. However, I need any addtional input in the code so when it copy new items to the worksheet it will look up column C in that worksheet and if there is already a item in that spreadsheet it won't copy the item from the New Item List to the item detail worksheet but still copy other new items instead. Below is the code. Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: VBA to not copy data to other worksheet when it duplicates the item id

    Hi, tantcu,

    without knowing your data the autofill command isn´t really understandable for me so I commented that out.

    Please Login or Register  to view this content.
    Ciaom
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: VBA to not copy data to other worksheet when it duplicates the item id

    Thank you so much

+ 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. vba Copy Filter item and paste at other worksheet
    By gingank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2012, 06:21 AM
  2. Replies: 0
    Last Post: 07-03-2012, 01:06 AM
  3. [SOLVED] Filter - Hiding duplicates but displaying 1 of the duplicates item
    By blacky1 in forum Excel General
    Replies: 3
    Last Post: 04-19-2012, 07:43 AM
  4. [SOLVED] Hiding duplicates but displaying 1 of the duplicates item
    By blacky1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2012, 07:39 AM
  5. Determine if item from one worksheet is in another, if not copy to new worksheet
    By guitarmonkey55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-20-2010, 01:56 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