Hey All,
I'm a VBA newbie. Was wondering if anyone can help me with this.
sub formula ()
a = ActiveCell.Address(False, False)
Selection.End(xlUp).Select
Selection.Offset(0, 1).Select
b = ActiveCell.Address(False, False)
end sub
I would like to create a formula that uses the cell address values for a and b.
lets say the a stores the cell as E140 and b as E93.
How do I get the formula to write: =E93/E140 instead of b/a
Thanks,
I'm a VBA newbie. Was wondering if anyone can help me with this.
sub formula ()
a = ActiveCell.Address(False, False)
Selection.End(xlUp).Select
Selection.Offset(0, 1).Select
b = ActiveCell.Address(False, False)
end sub
I would like to create a formula that uses the cell address values for a and b.
lets say the a stores the cell as E140 and b as E93.
How do I get the formula to write: =E93/E140 instead of b/a
Thanks,