Dim mRng As Range
Dim mRng1 As Range
Dim mRng2 As Range
Dim mRng3 As Range
Dim mTotal%
Dim oldMonth
Dim mSht As Worksheet
Dim mRow As Integer
Set mSht = Worksheets(1)
With mSht
mRow = .Range("a1").End(xlDown).Row
Set mRng = .Range("g1:l" & mRow)
Set mRng1 = .Range("a2:a12")
Set mRng2 = .Range("f2:f12")
mTotal = Application.WorksheetFunction.Max(mRng2)
Set mRng3 = Union(mRng1, mRng2)
End With
Select Case mTotal
Case 1 To 100
mTotal = "100"
Case 101 To 200
mTotal = "200"
Case 201 To 300
mTotal = "300"
Case 301 To 400
mTotal = "400"
Case 401 To 500
mTotal = "500"
Case esle
mTotal = mTotal
End Select