Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I am needing help with a program:
I need it to:
Randomly select a cell out of a range of cells and copy that cell into a different sheet
Then have it bold the selection in the originally sheet.
With an It statement that says:
If bold, pick a new one,
if not bold, select it, and then bold it.

I hope that makes sense.

The goal is to have 5 names picked from a list of 100, then have it not use it again until all names have been used.

What I have tried:

I have tried Index but I am lost.
Posted
Updated 12-Oct-17 11:06am
Comments
CHill60 12-Oct-17 15:34pm    
Post the code that you have tried and explain how it doesn't work

Start a macro recording.
Execute the steps needed to perform theses actions.
Stop the recording.
Edit you macro to see how to do it.

To get random values use some calculation based on the current time as an index into a range of cells.
 
Share this answer
 
Check my past answer: Read from text file, select random word[^]
There you'll find a way to use Rnd function.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900