+ Reply to Thread
Results 1 to 5 of 5

Copy/paste data between workbooks based on criteria in a column.

  1. #1
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Copy/paste data between workbooks based on criteria in a column.

    Hi, I found this piece of code. that copies data between 2 workbooks based on criteria in column A. It works, but there are two problems:
    1. Since is looping through data and I have a few thousands, it is taking quite a while;
    2. It should paste the data as values.

    Can it be improved?
    Please Login or Register  to view this content.
    Click the * to say thanks.

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

    Re: Copy/paste data between workbooks based on criteria in a column.

    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 Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Copy/paste data between workbooks based on criteria in a column.

    Thank you Alpha. I have a problem. What I am trying to do is to copy range E-S from W1 into F-T W2 based on criteria in A. I've changed the ranges in your macro, and for columns F-M it works, but for the others returns N/A. Any thoughts on this?

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

    Re: Copy/paste data between workbooks based on criteria in a column.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Copy/paste data between workbooks based on criteria in a column.

    Thank you. Solved my issue

+ 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. Copy/Paste from separate workbooks based on criteria
    By villa123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2017, 03:28 PM
  2. Copy Data from multiple sheets based on criteria in a column and paste to master log.
    By Jsonic5280 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2016, 03:55 PM
  3. [SOLVED] VBA - Copy and Paste data based on two criteria to specific start row and column
    By ndgo10 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-02-2014, 09:15 AM
  4. [SOLVED] copy Tabs, based on two criteria in column J and paste values
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-13-2013, 03:46 PM
  5. [SOLVED] Copy/Paste a column in a new sheet based on a criteria
    By Elorac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2013, 02:01 PM
  6. [SOLVED] copy and paste rows based on criteria in column
    By CharlieZangel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 12:54 PM
  7. [SOLVED] Copy, Paste and Delete Row based on column criteria
    By Kadover in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2012, 11:54 AM

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