How would I get this to work? The offset will not always be the same.
Please Login or Register to view this content.
How would I get this to work? The offset will not always be the same.
Please Login or Register to view this content.
Work in what way?
The only thing that's missing from the code is that you aren't actually doing anything with Range("A1").Offset(x,0).
If posting code please use code tags, see here.
I am trying to do this with it:
I have already declared r1 as a range and previously set it to a range("c33"). x is determined by the value of another range variable. It gives me a compile error when i try to do this.Please Login or Register to view this content.
That shouldn't happen, is it definitely a compile error?
Have you declared all your variables inclucing x?
Can you post the rest of the code?
Hmm...it just worked. No idea what i did wrong. Maybe just a typo. That's what i get for going to bed so late. Sorry for wasting everyone's time!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks