I am not sure how to do this, I need the following VBA code to execute without ending each section. For example, I need it to look at date for 5/30 and then 6/30 and then 7/31. If any of those conditions are not satisfied, then end . Please let me know if that is not clear. Thank YOu Tony
If Date >= CDate("05/30/2011") Then
Sheets("Class III Inputs").Select
Range("H18:J18").Select
Selection.ClearContents
Sheets("INPUTS").Select
If Date >= CDate("06/30/2011") Then
Sheets("Class III Inputs").Select
Range("H19:J19").Select
Selection.ClearContents
Sheets("INPUTS").Select
If Date >= CDate("07/31/2011") Then
Sheets("Class III Inputs").Select
Range("H20:J20").Select
Selection.ClearContents
Sheets("INPUTS").Select
End If
End Sub
If Date >= CDate("05/30/2011") Then
Sheets("Class III Inputs").Select
Range("H18:J18").Select
Selection.ClearContents
Sheets("INPUTS").Select
If Date >= CDate("06/30/2011") Then
Sheets("Class III Inputs").Select
Range("H19:J19").Select
Selection.ClearContents
Sheets("INPUTS").Select
If Date >= CDate("07/31/2011") Then
Sheets("Class III Inputs").Select
Range("H20:J20").Select
Selection.ClearContents
Sheets("INPUTS").Select
End If
End Sub