Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2021, 04:31 AM
tanktata tanktata is offline Using clickable textboxes and saving their captions Windows 10 Using clickable textboxes and saving their captions Office 2019
Novice
Using clickable textboxes and saving their captions
 
Join Date: Aug 2021
Location: Manchester UK
Posts: 4
tanktata is on a distinguished road
Default



Quote:
Originally Posted by JohnWilson View Post
Assuming you are using standar shapes for questions you might be able to use

Code:
Sub RightAnswer(oshp As Shape)
    If qAnswered = False Then
           numCorrect = numCorrect + 1
         count = count + 1
    rayResult(count) = oshp.TextFrame2.TextRange
    End If
    qAnswered = False
    'MsgBox "Your doing well, " & userNameType
    ActivePresentation.SlideShowWindow.View.Next
End Sub

Sub WrongAnswer(oshp As Shape)
    If qAnswered = False Then
        numincorrect = numincorrect + 1
                 count = count + 1
    rayResult(count) = oshp.TextFrame2.TextRange
    End If
    qAnswered = False 'if giving answer change back to True
    'MsgBox "Try to do better next time, " & userNameType
    ActivePresentation.SlideShowWindow.View.Next
End Sub
That works a treat. Thanks a lot for the assistance 🙂
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using clickable textboxes and saving their captions VBA to insert captions without appending to existing captions Marrick13 Word VBA 17 03-21-2023 07:51 PM
Table captions changing to Figure captions and vice versa alicatsmom Word Tables 0 06-11-2019 08:51 AM
Update Userform Captions, TextBoxes, Command buttons From Excel dan88 Word VBA 3 05-22-2016 08:59 AM
Using clickable textboxes and saving their captions Captions: Changing captions in Appendix update all captions carnestw Word 3 10-27-2015 12:34 PM
Using clickable textboxes and saving their captions Saving graphics using captions ChrisBrewster Word VBA 1 11-15-2014 01:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:36 PM.


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