Sub
Ersetzen()
Application.ScreenUpdating =
False
Dim
j
As
Integer
For
j = 5
To
778
If
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 8).Value =
""
Then
If
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).HasFormula =
True
Then
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).Activate
alteFormel = Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).Formula
neueFormel = Replace(alteFormel,
"+6.6"
,
"+6.5"
)
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).Formula = neueFormel
End
If
If
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).HasFormula =
True
Then
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).Activate
alteFormel = Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).Formula
neueFormel = Replace(alteFormel,
"+6.6"
,
"+6.5"
)
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).Formula = neueFormel
End
If
If
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).HasFormula =
True
Then
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).Activate
alteFormel = Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).Formula
neueFormel = Replace(alteFormel,
"+6.6"
,
"+6.5"
)
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).Formula = neueFormel
End
If
ElseIf
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 8).Value <>
""
Then
If
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).HasFormula =
True
Then
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).Activate
alteFormel = Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).Formula
neueFormel = Replace(alteFormel,
"+6.6"
,
"+6.5"
)
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 14).Formula = neueFormel
End
If
If
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).HasFormula =
True
Then
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).Activate
alteFormel = Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).Formula
neueFormel = Replace(alteFormel,
"+6.6"
,
"+6.5"
)
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 15).Formula = neueFormel
End
If
If
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).HasFormula =
True
Then
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).Activate
alteFormel = Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).Formula
neueFormel = Replace(alteFormel,
"+6.6"
,
"+6.5"
)
Worksheets(
"MTR_ab_Oktober_2017"
).Cells(j, 13).Formula = neueFormel
End
If
End
If
Next
End
Sub