I need a macro that will do exactly as the title says. I have 18 cells that, when a command button is pressed, it will randomly pick 6 of the 18 cells and fill them with an x. Is this even possible?
I need a macro that will do exactly as the title says. I have 18 cells that, when a command button is pressed, it will randomly pick 6 of the 18 cells and fill them with an x. Is this even possible?
can use the below
![]()
Please Login or Register to view this content.
Another way:
![]()
Please Login or Register to view this content.
Never use Merged Cells in Excel
Hi, MyComputerGuy,
Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.
Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.
Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!
Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
http://www.ozgrid.com/forum/showthread.php?t=181208
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Above solution is not good.
It return wrong result on large number of results.
Here is distribution of previous solution:
And this is new solution:![]()
Please Login or Register to view this content.
Looks like RANDEBETWEEN function doesn0t work fine![]()
Please Login or Register to view this content.
Code is below
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks