Pick random cell in VBA

Joined
Apr 20, 2011
Messages
1
Reaction score
0
Hi there I'm trying to pick a random cell in a range (A1:BW30) and change the background color of those cells. This would then be repeated say 50 times. There can be repetition in the cells picked but if its easy to prevent repetition that would be awesome. Ideally this would all be in a sub procedure. I tried modifying some code from here: http://www.access-programmers.co.uk/forums/showthread.php?t=161420 but I kept getting an invalid range error

Thanks in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top