sujittalukde
Well-known Member
- Joined
- Jun 2, 2007
- Messages
- 520
I am using the following recorded macro
When I am deleting the formula at A3 and then running the macro, the formula again appears on the cell A3.
Also it refilects 0 (Zero) on cell A3 if A2 and a3 doesnat contain values.
Can this be modified in such a way that:
1. It will not display the formula on the formula bar
2. Cell A3 will be blank (instead of 0 - Zero) if A1 and A2 is blank.
Code:
Sub Macro4()
'
'
ActiveSheet.Unprotect Password:=""
ActiveCell.FormulaR1C1 = "=R[-2]C+R[-1]C"
Range("A4").Select
ActiveSheet.Protect Password:=""
End Sub
When I am deleting the formula at A3 and then running the macro, the formula again appears on the cell A3.
Also it refilects 0 (Zero) on cell A3 if A2 and a3 doesnat contain values.
Can this be modified in such a way that:
1. It will not display the formula on the formula bar
2. Cell A3 will be blank (instead of 0 - Zero) if A1 and A2 is blank.