HairyHippy
Programmer
Hi All
Could you help me out again? I'm trying to loop a piece of code until cell A10 is reach, what is the loop until statement I need?
Could you help me out again? I'm trying to loop a piece of code until cell A10 is reach, what is the loop until statement I need?
Code:
Sub AddNewClient()
Application.Calculation = xlCalculationManual
Dim x As Long
Dim r As Range
Do
Rows(ActiveCell.Row).Select
Rows("5:10").Copy
Selection.Insert Shift:=xlDown
Rows(ActiveCell.Row - 1).Select
Selection.Rows.Group
Loop Until (cell A10 reached)
Application.Calculation = xlCalculationAutomatic
End Sub