coreyalderin
New Member
- Joined
- Jun 9, 2011
- Messages
- 19
I have some VBA code that is used to run 1,000s of iterations and it is taking along tim to run (about 1.5 hours). The code that I think is taking the longest time is below. Is there a better way to do this?
Range("start").Offset(loop1, last).Value = Cproduct
Set fillrange = Range(Range("start").Offset(loop1, last), _
Range("start").Offset(loop1, month1))
Set SourceRange = Range("start").Offset(loop1, last)
A little more information:
What I am trying to do is paste a value across a certain number of colums, in one row.
Then repeat that for many iterations, in the next rows.
Range("start").Offset(loop1, last).Value = Cproduct
Set fillrange = Range(Range("start").Offset(loop1, last), _
Range("start").Offset(loop1, month1))
Set SourceRange = Range("start").Offset(loop1, last)
A little more information:
What I am trying to do is paste a value across a certain number of colums, in one row.
Then repeat that for many iterations, in the next rows.