Hello,
I am using variable x to end a loop as follows:
This works fine. There are 4 blocks of data to process; the last line of the last Sub is completed properly, after the 4th block of data. Everything stops at the right time except that the module continues to say "running" and I need to press the stop button to get rid of this. Any suggestions? Many thanks.
David
I am using variable x to end a loop as follows:
Code:
Dim x As Integer
x = 1
Set portColumn = ThisWorkbook.Worksheets("Web").Range("U69")
Do Until x = 5
Call GoGetData
Call CleanNewData
Call MakeNewFile
Set portColumn = portColumn.Offset(0, 2)
x = x + 1
Loop
David