A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi there
For Each g In GradeRng
Is the same as saying
For Each cell In the Grade Range
In Excel each cell is considered a range hence we dimensioned as Range
The "g" means grade.
So
For Each g In GradeRng in other words is
For Each grade In the Grade Range
The For Each statement loops thru all the cells in the given/settled range looking for the values you want to evaluate with the if statements
I hope this helps you and gives you a solution to your problem
Regards
Jeovany