Question: I want this code in VBA in Excel 1. TEXT NUMBERS 1) Name a sheet Text Numbers. 2) Create a function called TextNumbers. 3) This
1. TEXT NUMBERS 1) Name a sheet Text Numbers. 2) Create a function called TextNumbers." 3) This function should accept a single parameter that is a number. If the number is not 20,21,22,23,24,25, it should return "Invalid Entry." If the number is in the correct range, it should return the text label for the number. For example, 21 should return "twentyone and 22 should return "twentytwo", etc. 4) Use a CASE statement for your logic in the function. 5) Test the function for the numbers 0, 20,21,22,23,24,25, and 26 in this worksheet
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
