Professional Documents
Culture Documents
3 VBA If Statement - A Complete Guide - Excel Macro Mastery
3 VBA If Statement - A Complete Guide - Excel Macro Mastery
-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