This will add the formula into Column F of the CurrentRegion, simply
overwrites the formula if it already exists
Code:
--------------------
Dim Rw As Long
Rw = Cells(2, 6).CurrentRegion.Rows.Count
Range(Cells(1, 6), Cells(Rw, 6)).Formula = "=IF(ISBLANK(RC[-1]),RC[1],RC[-1])"
--------------------
--
royUK
Hope that helps, RoyUK
For tips & examples visit 'my web site' (
http://www.excel-it.com/)
------------------------------------------------------------------------
royUK's Profile:
http://www.thecodecage.com/forumz/member.php?userid=15
View this thread:
http://www.thecodecage.com/forumz/sh...ad.php?t=35184