Closed Thread
Results 1 to 2 of 2

# Copy 3 top number vba #

  1. #1
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,185

    # 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
    sub tes ()
    dim y(),a,i&,j&,k&
    with [a1].currentregion
    a=.value
    for i = 1 to ubound(a(i,1)
    for j = 1 to 3
    if worksheetFunction.large(a(i,2)),j then
    k =k 1
    y(k,1)= a(i,1)
    y(k,2)=a(i,2)
    end if
    next j
    next i
    .columns(4).resize(,2) = y()
    end sub
    how to apply worksheetFunction.large to array

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    49,556

    Re: # Copy 3 top number vba #

    Welcome to the Forum, unfortunately this is a duplicate post and as such will now be closed, you may continue in your other thread.

    Thread Closed.

    http://www.excelforum.com/showthread.php?t=1171208
    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

Closed 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

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