H
Hari
Hi,
Is it possible to put a formula in a worksheet through VBA.
I have 2 cells Q3 and Q4 where I want to have formulas --> =IF(D3<>0,D3,"")
and =IF(COUNTIF($Q$3:$Q3,D4)=0,IF(D4="","",D4),"") respectively.
I want to write these formulas thru VB not actually do it beforehand in
Excel because im fearing that somebody may delete these formulas by mistake.
Actually im doing couple of other operations based on these 2 cells hence
wanted to know the syntax for introducing the formulas while the code is
running
Please guide me.
Regards,
Hari
India
Is it possible to put a formula in a worksheet through VBA.
I have 2 cells Q3 and Q4 where I want to have formulas --> =IF(D3<>0,D3,"")
and =IF(COUNTIF($Q$3:$Q3,D4)=0,IF(D4="","",D4),"") respectively.
I want to write these formulas thru VB not actually do it beforehand in
Excel because im fearing that somebody may delete these formulas by mistake.
Actually im doing couple of other operations based on these 2 cells hence
wanted to know the syntax for introducing the formulas while the code is
running
Please guide me.
Regards,
Hari
India