I am having a problem incorporating relative cell refrences into a macro I am writing (for example: Range.("RC[+1]").Select). Can anyone tell me what I am doing wrong?
Thanks!
For cell selection/activation etc, I'd certainly recommend Skip's approach. Likewise, if you want to insert a formula that always points to the same absolute address, use the Formula= approach. If you want to insert a formula using the same relative addressing scheme, however, I'd recommend using the FormulaR1C1= approach because it allows to us use just the one formula instead of a different one for each target cell.
Actually, excel / vba has enough smarts so that if you leave the $ out of formulae using the range.formula rather than range.formulaR1C1, it will be able to calc as if it was relative eg
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.