VBA MOD01 If then (Else , Else If ) for conditional Outcomes


If then (Else , Else If ) for conditional Outcomes

 Public Sub Simple_If()

If Range("B3").Value <> "" Then

Range("C3").Value = Range("B3").Value

End If


If Range("B4").Value > 0 And Range("B4").Value <= 400 Then

Range("C4").Value = Range("B4").Value


End If


End Sub



Comments

Popular posts from this blog

VBA01 Copy Resize Variably Sized Ranges

VBA MOD01 Passing Arguments to sub procedures (ByRef , By Val)

PY MOD01 Lecture 01