How to run an equation along whole column in excel vba
Posted
by
Elad Sommer
on Stack Overflow
See other posts from Stack Overflow
or by Elad Sommer
Published on 2012-09-08T05:36:55Z
Indexed on
2012/09/08
9:38 UTC
Read the original article
Hit count: 290
excel-vba
I want to run an excel vba which will go down column E and upon finding the value = "capa" will go two cell below, calculate the hex2dec value of that cell, present it by the cell with the value "capa" in column F and continue to search down column E. So far I've came with the below but it doesn't work:
For Each cell In Range("E:E")
If cell.Value = "Capa" Then
ActiveCell.Offset.FormulaR1C1 = "=HEX2DEC(R[2]C[-1])"
End If
Next cell
Thanks!
© Stack Overflow or respective owner