I have the following code for a Do Until, but it is not stopping at the given point. You Help will be greatly appreciated
Sub Macro6()
'
' Macro6 Macro
'
'
Dim LastRow As Long
LastRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
Dim CurrentRow As Long
CurrentRow = ActiveCell.Row
Do Until Cells(CurrentRow, 1) = "End"
Range("C2:D5").Select
Selection.Copy
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
Loop
End Sub
I'm using it on a table like this:
<tbody>
</tbody>
Sub Macro6()
'
' Macro6 Macro
'
'
Dim LastRow As Long
LastRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
Dim CurrentRow As Long
CurrentRow = ActiveCell.Row
Do Until Cells(CurrentRow, 1) = "End"
Range("C2:D5").Select
Selection.Copy
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
Loop
End Sub
I'm using it on a table like this:
<tbody> </tbody> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<tbody>
</tbody>