1. Option Explicit - It means that everything like variables must be defined explicitly before they can be used. It is a mode in which the compiler will make sure that all your variables have been defined before use and is one of a few modes that can be used. There is another mode called Option Strict which makes the compiler harsh on the programmer by making them follow strict rules and coding conventions.
2. Dim Temp as Double - Defines a variable called "Temp" as a datatype "double". A double is a decimal value. So in this statement Temp can hold decimal values like 2.3 or -45.6665. Integers on the other hand can only hold whole numbers like -1 or 5.
3. Application.ScreenUpdating = False - This turns screenupdating off, telling excel that it doesn't have to keep repainting the screen during the execution of the macro. This is good because if excel doesn't have to process the repainting of the screen, it allows a macro to execute faster because all resources are going into the actual processing of the macro.
4. ActiveCell.Address - Returns the address of the active cell. If your active cell was on E4 then it would return the value of $E$4 as the address.
5. ActiveCell.CurrentRegion.Select - As the name suggests it selects the current region. You know how you can select multiple columns and rows and cells at once? This statement will return a range for the currently selected region. Refer to my previous post to your first question to familiarize yourself with the idea of a Range.
6. Dim myArray(6) - Declares an array (a structure holding similar values contiguously) which can be accessed using a subscript. Think of it as a single file line of shoeboxes which you can store something in each box and access each box by the order in the line.
6b). What is the range of the index that can be used with this statement? - The range is 0 through 6 or 7 elements in total. If you specify "Option base 1" then it will start at 1 and not zero. The range would then be 1 through 6 or 6 elements.
I hope that helps you out. Enjoy!
"At DIC we be VBA kick ass code ninjas!"