Sub
einezeile()
Dim
q
q = ActiveCell.Row
Dim
strString
As
String
, rngCell
As
Range
strString =
"Final time per unit (te) assembly/ testing/ packaging"
If
ActiveSheet.FilterMode
Then
ActiveSheet.ShowAllData
Set
rngCell = Columns(1).Find(strString, lookat:=xlWhole, LookIn:=xlValues, MatchCase:=
True
)
If
ActiveCell.Row < 7
Or
rngCell.Row < q
Then
MsgBox
"You cannot insert a new line here"
Else
Application.ScreenUpdating =
False
Call
anfang
Sheets(
"Tabelle1"
).Visible =
True
Sheets(
"Tabelle1"
).Rows(
"3"
).Copy
ActiveCell.EntireRow.Insert Shift:=xlDown
Call
protect
Sheets(
"Tabelle1"
).Visible =
False
Call
ende
End
If
End
Sub