It’s been a while since I did any Excel automation, but I think there’s a property that gives you the range of non-blank cells (Range.CurrentRegion, if I remember right). You could use that to figure out the row number to put in your formula.
↧
It’s been a while since I did any Excel automation, but I think there’s a property that gives you the range of non-blank cells (Range.CurrentRegion, if I remember right). You could use that to figure out the row number to put in your formula.