![]() |
|
#13
|
|||
|
|||
|
Hi Andrew,
So, fixed the Checkbox CC's and it's working great now. Instead of the message box, I added a table to store the score. Not sure how I want to process the score right now so I just did a simple divide right to wrong. One more question if I could. The correct answer gets the green font, but it also gets the highlight. Can I apply the green font and a different highlight to the correct question? Code:
' MsgBox "Correct answers: " & iRight & vbCr & "Out of: " & iQuestions, vbInformation + vbOKOnly, "Paper Score Method 2"
With ActiveDocument.Tables(1)
.Cell(2, 1).Range.Text = iRight
.Cell(2, 2).Range.Text = iQuestions
.Cell(2, 3).Range.Text = Format(iRight / iQuestions, "0.00%")
.Cell(2, 3).Range.Font.TextColor = wdColorRed
.Cell(2, 3).Range.Font.Bold = True
End With
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Can you hide a comment in word using vba?
|
mrlemmer11 | Word VBA | 1 | 07-05-2015 03:23 PM |
| How to Hide/Un-hide a worksheet based on cell on another sheet. | easton11 | Excel Programming | 1 | 06-02-2015 12:07 PM |
| Inserts a checkmark when click on a cell | imfloyd | Excel | 3 | 01-17-2015 04:52 AM |
| Hide cursor in Word file | Cosmo | Word | 1 | 10-26-2012 02:46 PM |
| Checkmark function problem | todddesignr | PowerPoint | 0 | 07-29-2011 07:40 AM |