+ Reply to Thread
Results 1 to 3 of 3

How to incorporate deleting duplicate code into existing copy to new sheet code when new v

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2003
    Posts
    22

    How to incorporate deleting duplicate code into existing copy to new sheet code when new v

    Hi,

    I am currently using the following code to cope information from sheet 1 to numeous othe sheets based and vaues in column I. The code works perfectly, however, as time goes by new information will be added to certain cells in the rows in sheet1 i.e. sheet 1 will constanty be updated with new informaton. I still need to run my code to copy over the rows from sheet 1 to their repsective sheets, based on the names in column I. However, I am trying to find a way to overwrite/delete the duplicate rows that are created (in the name sheets) when I run the code repeadty ater each update. The values in column I wil not change but the others will. Thus I was hoping to ask for you guys's help to incorporate a line in the code that I am using that will do this.

    Please Login or Register  to view this content.
    I tried adding: ws.UsedRange.ClearContents '' after ws.Activate but that just wiped all the info from every sheet (good thing I used a backup ). Im really new to this so I apologize if this is very clear cut and basic for you guys but I am trying to learn. Anyway thanks in advance and I'll appreaciate any help that I can get!

  2. #2
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: How to incorporate deleting duplicate code into existing copy to new sheet code when n

    Hi Rizla,

    Can you paste your sheet (or a sample)? If you post a sample, how many rows are in your actual data?

  3. #3
    Registered User
    Join Date
    12-11-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: How to incorporate deleting duplicate code into existing copy to new sheet code when n

    Currently there are 42 rows that are in use, more will me added as time goes by. I can't post my sheet as it contains confidential information but I can make a sample but probably not until tomorrow. Thanks for your reply djdjdj

+ 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. [SOLVED] code for deleting existing conditional rules and reapplying them back
    By hk4kim in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-29-2013, 09:43 AM
  2. copy existing code for another sheet
    By defarny37 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:51 AM
  3. Need VBA code to Copy all on a sheet to another existing sheet
    By appform in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-24-2010, 11:24 AM
  4. Replies: 1
    Last Post: 08-15-2009, 05:52 AM
  5. VBA Code to duplicate (create copy of a sheet) sheets?
    By tariq in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2007, 05:36 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