You are on page 1of 3

7 de 54 10-nov.

-19 19:05
Sub ReadMarks()

Dim i As Long
' Go through the marks columns
For i = 2 To 11
' Check if marks greater than 50
If Sheet1.Range("C" & i).Value > 50 Then
' Print student name to the Immediate Window(Ctrl + G)
Debug.Print Sheet1.Range("A" & i).Value & " " & Sheet1.Range("B"
End If

Next

End Sub

8 de 54 10-nov.-19 19:05
9 de 54 10-nov.-19 19:05

You might also like