+ Reply to Thread
Results 1 to 2 of 2

Copy paste or replace

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Copy paste or replace

    Hello,

    I need to copy data from worksheet1 to worksheet2. I have managed to do so by using a Macro (see below) that copies the defined cells from the worksheet1 onto the worksheet2. It also creates to each entry (row) an ID and the entry date (based on the formula =NOW()).

    I am able to edit the data from the worksheet1 using the Vlookup fomula based on the worksheet2 combine with copy/paste values.

    Once I modify the entry on worksheet1, I need to save it back but the current Macro would just create me a new entry/ID on the worksheet2.. Would you know how to replace the existing row (finding the current ID present on cell D8 on the worksheet1 and to remove the duplicate on the worksheet2)? If ID not present on cell D8 it should just run my macro I guess.

    Here is the Macro I am using to copy de data from worksheet1 to worksheet2

    Please Login or Register  to view this content.
    Many thanks in advance,
    Graig
    Last edited by arlu1201; 07-27-2012 at 08:54 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Copy paste or replace

    Your code tags had to be input in the 1st post, i have deleted your duplicate post and put code tags for you in the first post.
    Last edited by arlu1201; 07-27-2012 at 08:55 AM.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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