largeselection
Active Member
- Joined
- Aug 4, 2008
- Messages
- 358
Hi All -
Hope this is an easy question. I'm basically scraping data from an input sheet into a data sheet and it works great as long as the ranges I'm using are all rows, but it fails when I am trying to scrape the data into columns when the source is in rows. For example,
works great because I'm taking stuff in columns and setting it in other columns, but the below fails. How do I correct it?
Thanks!
Hope this is an easy question. I'm basically scraping data from an input sheet into a data sheet and it works great as long as the ranges I'm using are all rows, but it fails when I am trying to scrape the data into columns when the source is in rows. For example,
VBA Code:
.Range(.Cells(x, 8), .Cells(x, 18)).Value = Range(Sheets(s.Value).Cells(c.Row, 3), Sheets(s.Value).Cells(c.Row, 13)).Value
works great because I'm taking stuff in columns and setting it in other columns, but the below fails. How do I correct it?
Code:
.Range(.Cells(x, 4), .Cells(x, 7)).Value = Range(Sheets(s.Value).Cells(6, c.Column), Sheets(s.Value).Cells(9, c.Column)).Value
Thanks!