Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 02-23-2021, 07:23 PM
jeffreybrown jeffreybrown is offline Hide checkmark and the word following it Windows 10 Hide checkmark and the word following it Office 2016
Expert
Hide checkmark and the word following it
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

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
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide checkmark and the word following it 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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft