Link to home
Start Free TrialLog in
Avatar of Stephen Forero
Stephen ForeroFlag for United States of America

asked on

copy paste formula vba

Hi Guys,

I am trying to copy paste a formula down to a certain row.
=MAX(U2:$U$2)-U2

When I use copy/paste.formula,  the exact formula gets copied... (not incrementing the U2 - without the $)

When I use Range.formulaR1C1
the formula changes to
=MAX(U$2:$U3)-U3

Any idea how to make the second copy =MAX(U3:$U$2)-U3
so on and so on??

thansk!!!
ASKER CERTIFIED SOLUTION
Avatar of jppinto
jppinto
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stephen Forero

ASKER

pardon my stupidity, my fault

thanks!!!