Sub DDE_KILL()
'make a backup of your work before you start
'++++++++++++++++++++++++++++++++++++++++++++
'++++++++++++++++++++++++++++++++++++++++++++
'you should make a backup of your spreadsheet before you start
'++++++++++++++++++++++++++++++++++++++++++++
'++++++++++++++++++++++++++++++++++++++++++++
'+++++++++++++++assumptions++++++++++++++++++
'Name your DDE KILL sheet "Main"
'you are starting on the first DDE
'there are no blank cells between DDE and KILL
'good luck
Dim RangeStart
RangeStart = ""
Dim RangeEnd
RangeEnd = ""
Do While Selection <> ""
Do Until RangeEnd <> Empty
ActiveCell.Select
If Selection = "DDE" Then
Selection.Offset(1, 0).Select
RangeStart = ActiveCell.Address
ElseIf Selection = "KILL" Then
Selection.Offset(-1, 0).Select
RangeEnd = ActiveCell.Address
Selection.Offset(2, 0).Select
Else
Selection.Offset(1, 0).Select
End If
Loop
Range(RangeStart, RangeEnd).EntireRow.Select
Selection.Copy
Sheets.Add
ActiveSheet.Paste
Application.CutCopyMode = False
'the name of your spreadsheet must be "main" to work
Sheets("Main").Select
Range(RangeEnd).Select
Selection.Offset(2, 0).Select
RangeStart = ""
RangeEnd = ""
Loop
End Sub