Forums

General Betting

Welcome to Live View – Take the tour to learn more
Start Tour
There is currently 1 person viewing this thread.
undecided
01 May 10 17:41
Joined:
Date Joined: 12 Jul 02
| Topic/replies: 29,481 | Blogger: undecided's blog
I use for example

Range("D11:G209").copy

I want to replace the numbers above with variables depending on what my macro finds.
So the macro trawls down a list of data, stops at a row, and that row reference should replace the 209 above.

thanks
Pause Switch to Standard View help with excel code please
Show More
Loading...
Report imlac1 May 1, 2010 6:19 PM BST
You could use the cells freference. Eg in your example it translates as

Range(Cells(11, 4), Cells(209,7)).Copy

use a variable in place of 209 to indicate the row:

Range(Cells(11, 4), Cells(this_row,7)).Copy
Report undecided May 1, 2010 6:31 PM BST
Thank you, that looks like it will do the trick :)
Post Your Reply
<CTRL+Enter> to submit
Please login to post a reply.

Wonder

Instance ID: 13539
www.betfair.com