Option
Explicit
Private
Sub
Worksheet_Change(
ByVal
Target
As
Range)
Dim
ext_wb
As
Workbook
If
Not
Intersect(Target, Columns(1:19))
Is
Nothing
Then
With
Application
.EnableEvents =
False
.ScreenUpdating =
False
End
With
Set
ext_wb = Workbooks.Open(ThisWorkbook.Path &
"\AM2_test.xlsm"
)
ext_wb.Worksheets(
"offene Punkte"
).Range(Target.Address) = Target.Value
Call
ext_wb.Close(SaveChanges:=
True
)
Set
ext_wb =
Nothing
With
Application
.EnableEvents =
True
.ScreenUpdating =
True
End
With
End
If
End
Sub
Option
Explicit
Private
Sub
Worksheet_Change(
ByVal
Target
As
Range)
Dim
ext_wb
As
Workbook
If
Not
Intersect(Target, Columns(1:19))
Is
Nothing
Then
With
Application
.EnableEvents =
False
.ScreenUpdating =
False
End
With
Set
ext_wb = Workbooks.Open(ThisWorkbook.Path &
"\AM1_test.xlsm"
)
ext_wb.Worksheets(
"offene Punkte"
).Range(Target.Address) = Target.Value
Call
ext_wb.Close(SaveChanges:=
True
)
Set
ext_wb =
Nothing
With
Application
.EnableEvents =
True
.ScreenUpdating =
True
End
With
End
If
End
Sub