Im dealing with a slightly screwed up software export, what im trying to do right now is:
cut all rows with content below my case ("Total Ertrag") until the next empty row (cut without the empty row)
and paste it above my case
im having a hard time getting a clue as to how i should go about defining the cut range
any hints d be much appreciated ~
cut all rows with content below my case ("Total Ertrag") until the next empty row (cut without the empty row)
and paste it above my case
im having a hard time getting a clue as to how i should go about defining the cut range
any hints d be much appreciated ~
VBA Code:
Sub FixList()
Dim vL As Range, vArea As Areas
Set vArea = Range("A:A").SpecialCells(xlConstants).Areas
For Each vL In Range("A1", Range("A" & Rows.Count).End(xlUp))
Select Case vL.Value
Case "Total Ertrag"
vL.Offset(1).Select
'vArea ?
'vArea.EntireRow.Cut
'vL.Offset(-1).Insert
End Select
Next vL
End Sub