Drinking Age Problem

Input an age, check to see if it is greater than 21, display either “Drinking Age” if age is 21 and over, or “Too Young to Drink”.

 

Create a flowchart and VBA code to solve this problem. Create a command button on the spreadsheet named cmdDrink. Place the code under the Click event of a command button titled “Drinking Age”.

 

Flowchart Solution

Sample Screen Shots

VBA Solution Code