+ Reply to Thread
Results 1 to 5 of 5

Transfer data to match rows using VBA

  1. #1
    Registered User
    Join Date
    07-07-2020
    Location
    UK
    MS-Off Ver
    Office 365 - Exel 2016
    Posts
    11

    Transfer data to match rows using VBA

    Hi

    I'm trying to transfer data when it matches a duplicate number on the "bulk loader" sheet, to the "Tracker" sheet and then delete the data that has been copied in the bulkloader sheet, but not the entire row as formulas are held in the other columns. I get an error using the following code, can you see what i'm doing wrong or is there a better way to do this?

    Any help is appreciated.

    Please Login or Register  to view this content.

    Thanks
    Last edited by hyd1956; 07-08-2020 at 11:42 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Transfer data to match rows using VBA

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,606

    Re: Transfer data to match rows using VBA

    Hi hyd1956,

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    See also yellow banner at the top of the page and follow the tip about attachment
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    07-07-2020
    Location
    UK
    MS-Off Ver
    Office 365 - Exel 2016
    Posts
    11

    Re: Transfer data to match rows using VBA

    Thanks for the responses, sorry new to this and the forum - updated the post and I've attached the example for you. The code above didn't seem to transfer any data and yes please once the data is transferred I would like to clear the data that has been copied, not the entire row if that's possible.

    Any help you can provide would be great, thank you.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Transfer data to match rows using VBA

    Please Login or Register  to view this content.
    If you want it to work from the CommandButton1 activeX button, you'll have to name the procedure
    Private Sub CommandButton1_Click()

+ 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] Compare Data in 2 Columns in 2 sheet When there is a match transfer data from 2nd Column
    By kellyjo7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2015, 01:05 PM
  2. Match string values and transfer data
    By GDM69 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2014, 01:31 PM
  3. [SOLVED] Match Data from Another Sheet and Transfer Values
    By basketball2524 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2013, 11:49 PM
  4. Replies: 1
    Last Post: 08-24-2013, 07:01 AM
  5. [SOLVED] Match or Loop to Transfer Data from Userform to Sheet
    By cschoyer in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-25-2012, 03:06 PM
  6. [SOLVED] Match and Transfer data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2012, 05:46 AM
  7. transfer and match data
    By kant101 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-30-2007, 04:26 AM

Tags for this Thread

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