Warship
Well-known Member
- Joined
- Jul 17, 2007
- Messages
- 1,055
- Office Version
- 2016
- 2013
- 2007
- Platform
- Windows
A case of cerebral flatulence most likely:
Both of the FormulaR1C1 lines are throwing Err1004.
Suggestions?
Both of the FormulaR1C1 lines are throwing Err1004.
Suggestions?
Code:
Sub TaxExempt()
If ActiveSheet.Cells(ActiveCell.Row, 32) = "exempt" Then
ActiveSheet.Range("AF" & ActiveCell.Row).FormulaR1C1 = "=IF(RC[-4]<>"",RC[-4]*GetTax(vFacID),"")"
'ActiveSheet.Cells(ActiveCell.Row, 32).FormulaR1C1 = "=IF(RC[-4]<>"",RC[-4]*GetTax(vFacID),"")"
Else
ActiveCell = "exempt"
End If
End Sub