confused in Frankfurt
Board Regular
- Joined
- Oct 11, 2010
- Messages
- 53
Hi there,
I have a loop which is skipping from the do until to the end without running through the code in between.
Can someone see why it is not working?
Dim LastRow As Long
With ActiveSheet
LastRow = .Cells(.Rows.Count, "a").End(xlUp).Row
End With
Do Until LastRow (LastRow=70)
'Open Template Workbooks
Template.Open
......
......
......
Loop
when I use the debugger I get to the line do until and it skips directly to the end of code after loop
Regards
Sarah
I have a loop which is skipping from the do until to the end without running through the code in between.
Can someone see why it is not working?
Dim LastRow As Long
With ActiveSheet
LastRow = .Cells(.Rows.Count, "a").End(xlUp).Row
End With
Do Until LastRow (LastRow=70)
'Open Template Workbooks
Template.Open
......
......
......
Loop
when I use the debugger I get to the line do until and it skips directly to the end of code after loop
Regards
Sarah