Sub
AufgabeChange_EingabeDB()
Call
DB_unprotected
Call
Eingabe_unprotected
Dim
tbl
As
ListObject
Set
tbl = tb_Datenbank.ListObjects(1)
Dim
Zeile_1
As
Long
If
tb_Eingabeformular.Shapes.Range(Array(
"txt_anlegen"
,
"img_anlegen"
)).Visible =
True
Then
tbl.ListRows.Add
Zeile_1 = tbl.DataBodyRange.Rows.Count
Else
<span style=
"background-color:#f1c40f"
>Zeile_1 = Range(
"Tabelle1[Projektnummer]"
).Find(What:=tb_Eingabeformular.Range(
"D12"
).Value, LookIn:=xlValues, LookAt:=xlWhole).Row - tbl.HeaderRowRange.Row</span>
End
If
With
tb_Eingabeformular
tbl.DataBodyRange(Zeile_1, 1).Value = .Range(
"D12"
)
tbl.DataBodyRange(Zeile_1, 2).Value = .Range(
"E18"
)
tbl.DataBodyRange(Zeile_1, 3).Value = .Range(
"E20"
)
tbl.DataBodyRange(Zeile_1, 4).Value = .Range(
"E22"
)
tbl.DataBodyRange(Zeile_1, 5).Value = .Range(
"L18"
)
tbl.DataBodyRange(Zeile_1, 6).Value = .Range(
"L20"
)
tbl.DataBodyRange(Zeile_1, 7).Value = .Range(
"L22"
)
End
With
Call
DB_protect
Call
Eingabe_protect
tb_Datenbank.
Select
ActiveWindow.ScrollRow = tbl.DataBodyRange(Zeile_1, 1).Row
tbl.DataBodyRange(Zeile_1, 1).
Select
End
Sub