Question: [GIT BASH IMAGE][1]
https://i.stack.imgur.com/Akyjx.png

Below I've tried adding in some number 1-100 inside the function itself for example;
Function grade(85)

I've also tried assigning a variable let = 85.

I guess I'm not understanding what they mean by "Receive a score out of 100".
I need help getting this number plugged into this script here. I have included the gitbash error that I'm receiving which makes me think that it's something that needs to be included with the function.
Thank you

```
//Grade Calculator
/*
Using the grade function below do the following: 
  1. Receive a score out of 100 
  2. Return the corresponding letter grade following this grade scale:

   90-100 = A 
   80-89 = B 
   70-79 = C 
   60-69 =  D 
   below 60 = F
*/

function grade(){

    if(grade = 100 && grade >=90 )

    {
      return 'you got an A';

    }

    if(grade >= 80 && grade <= 89 )

    {
      return 'you got a B';
    }

    if(grade >= 70 && grade <= 79 )

    {
      return 'you got a C';
    }

    if(grade >= 60 && grade <= 69 )

    {
      return 'You got a D';
    }

    if(grade <= 60 )

    {
      return 'you got a F';
    }

  }

  [1]: https://i.stack.imgur.com/Akyjx.png

```

Answer: 
Format With Offset
------------------

[Range.Union](https://learn.microsoft.com/en-us/office/vba/api/excel.application.union)

```vb
Option Explicit

Sub formatWithOffset()

    Dim record_num As Long
    ' e.g.;
    record_num = 5

    Dim rng As Range
    Set rng = ThisWorkbook.Worksheets("Sheet1").Range("A1:C2")

    Dim tRng As Range
    Dim n As Long

    For n = 1 To record_num
        If Not tRng Is Nothing Then
            Set tRng = Union(tRng, rng.Offset((n - 1) * 3))
        Else
            Set tRng = rng
        End If
    Next n

    If Not tRng Is Nothing Then
        With tRng
            With .Borders(xlEdgeLeft)
                .LineStyle = xlContinuous
                .ThemeColor = 6
                .TintAndShade = -0.499984740745262
                .Weight = xlThick
            End With
        End With
    End If

End Sub

```
If you want to use `With` with an array, you need to iterate through each element of the array individually, as the `With` operator only operates on a single object.

This assigns the ranges to the `cellarray`:

```
Dim cellarray(1 To 5) As Range
With ThisWorkbook.Sheets("Sheet1")
    For n = 1 To 5
        Set cellarray(n) = .Range("A" & (n - 1) * 3 + 1 & ":C" & (n - 1) * 3 + 2)
    Next n
End With

```

and then run through the elements of `cellarray`, and use `With` to apply the styles.

```
For Each c In cellarray
    With c
        .Interior.ColorIndex = 12
    End With
Next c

```