Forums

General Betting

There is currently 1 person viewing this thread.
undecided
01 May 10 17:41
Joined:
Date Joined: 12 Jul 02
| Topic/replies: 29,496 | 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

Post your reply

Text Format: Table: Smilies:
Forum does not support HTML
Insert Photo
Cancel
sort by:
Show
per page
Replies: 2
By:
imlac1
When: 01 May 10 18:19
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
By:
undecided
When: 01 May 10 18:31
Thank you, that looks like it will do the trick :)
sort by:
Show
per page

Post your reply

Text Format: Table: Smilies:
Forum does not support HTML
Insert Photo
Cancel
‹ back to topics
www.betfair.com