Hello,
I have the following which loops through, adding 1 to count with each iteration, then returns to starting cell and sets range according to count return. Is there a more efficient way to set the range as loop iterates?
Thank you.......Mickey
Do Until ActiveCell(1, 0).Value = TimeT + TestOffset
ActiveCell.Offset(1, 0).Select
Count = Count + 1
Loop
ActiveCell.Offset(-Count, 0).Select
Set rng1 = Range(ActiveCell, ActiveCell.Offset(Count))
I have the following which loops through, adding 1 to count with each iteration, then returns to starting cell and sets range according to count return. Is there a more efficient way to set the range as loop iterates?
Thank you.......Mickey
Do Until ActiveCell(1, 0).Value = TimeT + TestOffset
ActiveCell.Offset(1, 0).Select
Count = Count + 1
Loop
ActiveCell.Offset(-Count, 0).Select
Set rng1 = Range(ActiveCell, ActiveCell.Offset(Count))