Jump to content


Photo
- - - - -

Help with VBA in Excel


  • Please log in to reply
No replies to this topic

#1 Overclocker16

Overclocker16

    Space for rent...

  • Members
  • PipPipPipPipPip
  • 2890 posts
  • Gender:Male

Posted 03 July 2015 - 07:06 PM

Hey guys, long time since I've been here.

 

So here's the thing, trying to build a Quiz in Excel, the questions populate randomly in Column C, and the mulitple choice answers in Column E, G, I and K.  In Column O, there is a drop down menu for answer choices (A, B, C or D).  Currently in Column Q is where the answers to the randomly populated questions show up.  This all works but would have to be manually graded.  What I'm trying to figure out is the VBA code to match Column O to Column Q.

 

Ex.

 

Choose ' A ' for your answer, the correct Answer is ' A '.  After all questions are answered, click the Score button and it will highlight the correct answers green and the wrong answers red.

 

So, if column O = column Q, highlight green.  If column O doesn't equal column Q, highlight red.  But only from being able to click the score button.

 

Thanks.

 

Edit:

 

Got it all figured out after a little help.  So no need to have this thread anymore.


Edited by Overclocker16, 05 July 2015 - 02:29 PM.

"Why build one when you can build two at twice the cost?"
Infantryman are not an "Autonomous Mobile Biological Mine Clearing Device, Single Use"

If you can read this, thank a teacher. If you can read this in English thank a vet - Anonymous