Hi there - very new to excel and trying to write a macro that will sum the cells above and then will not let the answer exceed a given amount. For example: the "sum macro" would be something like
Sub b8()
Range("b8").Formula = "=b6+b7"
End Sub
The "If" statement would be something like =IF(B8<100.1,B8,100)
So. How do I include the If statement in the macro?
Thanks
Sub b8()
Range("b8").Formula = "=b6+b7"
End Sub
The "If" statement would be something like =IF(B8<100.1,B8,100)
So. How do I include the If statement in the macro?
Thanks