Visual Basic for Applications/Arrays

This lesson introduces arrays.

Objectives and Skills
Objectives and skills for arrays include:
 * Declaring and initializing fixed-size arrays
 * Changing the size of an array dynamically

Readings

 * 1)  Array data type
 * 2) Microsoft: Declaring Arrays
 * 3) Microsoft: Using Arrays
 * 4) Microsoft: ReDim Statement

Activities

 * 1) Initialize an Array
 * 2) Review Microsoft: Array Function.
 * 3) Create a macro that initializes an array with three values, such as the scores of three assignment grades.
 * 4) Calculate Average
 * 5) Review MathsIsFun: Average.
 * 6) Extend the macro above so that it calculates and displays the average of the three array values.
 * 7) Store Values in an Array
 * 8) Extend the macro above so that instead of initializing the array with three values, the macro uses InputBox to request the three values from the user and store the values in the array.
 * 9) Calculate and display the average of the three array values as before.
 * 10) Age Calculations
 * 11) Create a macro that asks the user how old they are in years, and then calculate and display their approximate age in months, days, hours, and seconds.  Use an array to store the input value and the values for months, days, hours and minutes as they are calculated.  Then display the results.
 * 12) Area Calculations
 * 13) Create a macro that asks the user for the dimensions of different shapes and then calculate and display the area of the shapes.  Use an array to store the input values and the values for the results as they are calculated.  Then display the results.