+ Reply to Thread
Results 1 to 4 of 4

Simple VBA script for match Copy/Paste

  1. #1
    Registered User
    Join Date
    12-15-2010
    Location
    sweden
    MS-Off Ver
    Excel 2003
    Posts
    2
    Hi,

    I am looking for a simple VBA script that can copy and paste.
    I want it to match Sheet1 A1:6000 to Sheet2 A1:8000.
    If match is found in Sheet2 copy the row(not only the cell) from Sheet2, in to Sheet3.


    I have goggled but cant find a script that dose this, only match words.
    And my VBA script skills are low, so I cant code it my self

    Hi,

    I am looking for a simple VBA script that can cut and paste.
    I want it to match Sheet1 A2:6000 to Sheet2 A2:8000.
    If match is found in Sheet2 cut the row(not only the cell) from Sheet2, in to Sheet3. And delete the enter row in Sheet1.

    Note: there are duplicates in column A in both Sheet1 and Sheet2. I need them all moved to Sheet3 that's why I need them to be cut and pasted.

    I have goggled but cant find a script that dose this, only match words.
    And my VBA script skills are low, so I cant code it my self.

    If there is any possibilities to also copy cell D&E from Sheet1 the row that it has found as a match in, to Sheet3 would be great. but not a must at this point.

    Hope that someone can assist me.I have added a example of the file I use, this maybe clarifies my request.
    Attached Files Attached Files
    Last edited by davesexcel; 01-12-2011 at 08:25 AM. Reason: Same question, asked a month later

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Simple VBA script for match Copy/Paste

    Hopefully this is simple enough

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Simple VBA script for match Copy/Paste

    Your two threads have been merged.

  4. #4
    Registered User
    Join Date
    12-15-2010
    Location
    sweden
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Simple VBA script for match Copy/Paste

    Thanks davesexcel!

    mrice: almost there, it only copy's, doesn't move the rows.
    And also it only copy's the first row that it can find and stops searching after that.

+ 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