+ Reply to Thread
Results 1 to 4 of 4

Copy row values to columns based on criteria

  1. #1
    Registered User
    Join Date
    01-26-2016
    Location
    Elk Grove, CA, USA
    MS-Off Ver
    2010
    Posts
    12

    Copy row values to columns based on criteria

    Greetings,

    I have this vba code that copies entire row of data from one WS to another, which is working perfectly.
    Please Login or Register  to view this content.
    However, I would like to change things around where I would like to only copy all values from the last column based on criteria. Please see attached image. Thank you in advance for your help.

    Regards,
    ExcelCopy.png
    Kas

  2. #2
    Forum Contributor
    Join Date
    12-05-2015
    Location
    Akron, OH
    MS-Off Ver
    15.0
    Posts
    424

    Re: Copy row values to columns based on criteria

    The simplest way to modify that code to do that is to probably change For I = 2 to LastRow
    ...to For I = LastRow to LastRow

    ...and embed in your criteria so your code will look like:
    Please Login or Register  to view this content.
    <---If my answer helped, please click *

  3. #3
    Registered User
    Join Date
    01-26-2016
    Location
    Elk Grove, CA, USA
    MS-Off Ver
    2010
    Posts
    12

    Re: Copy row values to columns based on criteria

    Hi Joe31623,

    I changed my code as follows but now I get "Run-time error '1004': Application-defined or object-defind error"

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-26-2016
    Location
    Elk Grove, CA, USA
    MS-Off Ver
    2010
    Posts
    12

    Re: Copy row values to columns based on criteria

    Hi Joe31623,

    I changed my code as follows but now I get "Run-time error '1004': Application-defined or object-defind error"

    Please Login or Register  to view this content.
    Last edited by kas.samrari; 02-19-2016 at 03:39 PM.

+ 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] Summing values based on criteria across columns?
    By jakeruby in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-22-2015, 06:01 PM
  2. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  3. [SOLVED] Copy Columns based on multiple criteria
    By slmthai in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-19-2013, 02:07 AM
  4. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  5. matching values based on criteria and return values from another columns
    By lizard54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 11:29 AM
  6. Lookup values based on criteria in two columns
    By ola7mat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2012, 10:14 AM
  7. Copy columns based on criteria
    By doubl3d80 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-22-2011, 04:54 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