KeyCell = ActiveCell.Address(0,0)
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Ladymuck" <(E-Mail Removed)> wrote in message
news:63F76547-7284-49CE-A1E0-(E-Mail Removed)...
>I have the following line in my macro code:
> KeyCell = ActiveCell.Address
> This is used in the line:
> Range("D2").Formula = "=IF('Original Data'!" & KeyCell &
> "<>0,'Original Data'!" & KeyCell & ",TODAY())"
>
> It evaluates fine but, further down in my code, I copy this formula down a
> large number of rows. Unfortunately, KeyCell is an absolute cell reference
> and I want it to be relative. What do I need to do to change this?
>
> Many thanks for your help
>
|