Message Box

Intermediate Exercise


Make a Msgbox with vbYesNo argument (display answer button: yes and no) asking if the user has a specific name (for instance, asking if the user is named John). If the answer is no, use the InputBox method to allow the user to change the name. Subsequently, use this new input to create a new Msgbox.


Suggested Concepts:

Remember that in most cases there is more than one way to solve the exercise.

Hint: Make a conditional structure foreseen a negative answer.


Show Answer

Download exercise Download answer



SuperExcelVBA.com is learning website. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. All Rights Reserved.

Excel ® is a registered trademark of the Microsoft Corporation.

© 2024 SuperExcelVBA | ABOUT

Protected by Copyscape