Results 1 to 3 of 3

Code to randomly select

Threaded View

fo05kka Code to randomly select 02-08-2009, 09:03 PM
shg Re: Code to randomly select 02-08-2009, 09:15 PM
shg Re: Code to randomly select 02-09-2009, 07:22 PM
  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Code to randomly select

    I need a code that can randomly select a set of numbers each time the macro is ran.
    I already recorded a macro but I did it to ramdon select from A-J in terms of roll and this selection should be from the already generated numbers I have in the sheet.

    This what I have recorded
    Sub copyWeigths_sheet2()
    ' copyWeigths_sheet2 Macro
    Sheets("WEIGHTS").Select
    Range("A9:J9").Select ' this could be A28 to J28
    Selection.Copy
    Sheets("Sheet2").Select
    Range("V501:AE501").Select
    ActiveSheet.Paste
    End Sub
    Thanks.
    Last edited by fo05kka; 02-09-2009 at 12:10 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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