I am trying to have the following formula entered into a cell, but the "No" in the If statement is causing VB problems.
Any work arounds?
Any work arounds?
Code:
TotTx = "=If(Netting = 'No',If(" & MyCells(rownum2, 11) & ">0," & MyCells(rownum2, 11) & "+" & MyCells(rownum2, 12) & "," & MyCells(rownum2, 12) & ")," & MyCells(rownum2, 11) & "+" & MyCells(rownum2, 12) & ")"
ActiveSheet.Cells(rownum2, 13) = TotTx
Comment