+ Reply to Thread
Results 1 to 2 of 2

# Copy 3 top number vba #

  1. #1
    Valued Forum Contributor
    Join Date
    MS-Off Ver
    2016 64 bitt

    # Copy 3 top number vba #

    in a1= student name,b1= student scor
    a2:a100.value = jack2..until jack100 ,in b2:b100.value = 100,80,90 ....until range(b100)
    i want copy by criteria in col B 3 top skor (first scor,second scor,third scor) to column(d)..it is posible if use vba array
    Please Login or Register  to view this content.
    how to apply worksheetFunction.large to array
    Last edited by JBeaucaire; 01-25-2017 at 04:33 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365

    Re: # Copy 3 top number vba #

    WorksheetFunction.Large only works the way it does on the worksheet, so the first parameter must be an object range. Since you only need 3 numbers, you can use VBA to run the LARGE function to do it only 3 short steps, but not with an array. You'd still be using a range.

    To use an array at all seems totally unnecessary in this scenario.
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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. Replies: 0
    Last Post: 06-06-2016, 09:15 AM
  2. Formula to copy a number from a cell and make the number fixed
    By Brycker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-29-2015, 01:59 PM
  3. [SOLVED] Copy set number of cells a set number of times within same worksheet
    By hal9000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2013, 11:51 AM
  4. [SOLVED] If text the delete, if number then copy number to another cell
    By exchangejames in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-22-2013, 10:01 AM
  5. [SOLVED] Excel VBA/Macro - Copy Number of Rows based on the number in a cell to another sheet
    By diane.alexander58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 11:32 AM
  6. number in cell is number to add number of rows wit copy some contex
    By nicollab in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2012, 08:09 AM
  7. Replies: 2
    Last Post: 07-15-2012, 04:05 PM


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