+ Reply to Thread
Results 1 to 4 of 4

Top 10 values - copy and paste whole row into new sheet

  1. #1
    Registered User
    Join Date
    06-28-2018
    Location
    US
    MS-Off Ver
    2016
    Posts
    89

    Exclamation Top 10 values - copy and paste whole row into new sheet

    Hi, I am trying to write a macro that will copy and paste a whole row into a new sheet for only the top 10 highest values in column J. I have tried several codes, none are working and I haven't been able to find anything online, please help.

    Thank you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Top 10 values - copy and paste whole row into new sheet

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Top 10 values - copy and paste whole row into new sheet

    Quote Originally Posted by Rachel5694 View Post
    Hi, I am trying to write a macro that will copy and paste a whole row into a new sheet for only the top 10 highest values in column J. I have tried several codes, none are working and I haven't been able to find anything online, please help.

    Thank you.
    You can use Auto Filter or Advance Filter to do this.
    For example, i hypothesize that your data is range A1:J100 in sheet1 and row 1 is header. You want to copy entire row of top 10 highest values in column J to sheet2.

    Use Auto Filter
    Please Login or Register  to view this content.
    Use Advance Filter
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-28-2018
    Location
    US
    MS-Off Ver
    2016
    Posts
    89

    Exclamation Re: Top 10 values - copy and paste whole row into new sheet

    Thank you the Auto Filter worked!

    I am trying to do the top 10 in column L and N as well as J. I tried this code and nothing seems to be copy and pasting over, any thoughts on how to fix this?

    Please Login or Register  to view this content.
    Last edited by Rachel5694; 05-15-2019 at 01:12 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. Macro copy from one sheet and paste values in NEXT VISIBLE SHEET & then ACTIVATE IT.
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2017, 04:54 AM
  2. Code to copy and paste values on a sheet to another sheet
    By Forum2000s in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 09:33 AM
  3. Copy sheet and paste values - VBA
    By CC268 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2017, 02:10 PM
  4. [SOLVED] Copy cell values from one sheet and paste it in another sheet of the same workbook
    By Tauheed Ahmed in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2016, 08:51 AM
  5. Copy and Paste Values into new sheet
    By NotSwank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2014, 12:33 PM
  6. [SOLVED] should copy and paste the intersect values from sheet 1 to sheet 2
    By Apps in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-12-2013, 10:06 AM
  7. copy paste values to a new sheet
    By rainbow_1985 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-19-2009, 01:49 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