View Single Post
 
Old 10-29-2015, 01:57 PM
rsrasc rsrasc is offline Windows 7 64bit Office 2010 64bit
Competent Performer
 
Join Date: Mar 2014
Location: Germany
Posts: 148
rsrasc is on a distinguished road
Default If else statement-Need help with coding

Just wondering if the below code could be combined or simplified.

Thank you for your assistance and cooperation


Code:
Sub MetIndividualGoal1()

If Range("E5").Value >= Range("F5").Value Then

    Range("H5").Value = "Yes"
    
    Else
    Range("H5").Value = "No"
    
End If

End Sub

Sub MetIndividualGoal2()

If Range("E6").Value >= Range("F6").Value Then

    Range("H6").Value = "Yes"
    
    Else
    Range("H6").Value = "No"
    
End If

End Sub

Sub MetIndividualGoal3()

If Range("E7").Value >= Range("F7").Value Then

    Range("H7").Value = "Yes"
    
    Else
    Range("H7").Value = "No"
    
End If

End Sub
Reply With Quote