mardi 11 juillet 2017

command button to decide which slide to go depending on the greater of the two values in two textboxes

I'm a vba newbie and I'm trying to put together a powerpoint questionnaire where in each slide the participant will be presented 2 videos and asked to rate them from 1 to 5 in two textboxes. Then the participant will hit a command button that says 'NEXT QUESTION'.

My question is how do I code the command button so that when the value in textbox 1 is greater than in textbox 2, the next slide (a goto slide function?) will be a different one than what would be if the value in textbox 2 were greater than textbox 1. I basically want the command button to have an if statement similar to excel, and have two possible outputs.

Thanks!

Aucun commentaire:

Enregistrer un commentaire