Sub
Speichern()
<span style=
"color:#2ecc71"
>
Application.DisplayAlerts =
False
Application.ScreenUpdating =
False
NameBisherMitEndung = ThisWorkbook.Name
NameBisherOhneEndung = Left(NameBisherMitEndung, Len(NameBisherMitEndung) - 5) <span style=
"color:#2ecc71"
>
<span style=
"color:#2ecc71"
>
NeuerName = Maschinennummer & Teilversuch & NameBisherMitEndung
ChDir Pfad <span style=
"color:#2ecc71"
>
</span>ThisWorkbook.Worksheets(
"Process"
).Visible = xlVeryHidden <span style=
"color:#2ecc71"
>
If
Left(NameBisherMitEndung, 6) = Left(NameBisherMitEndung, 6)
Then
<span style=
"color:#2ecc71"
>
ThisWorkbook.SaveAs fileName:=Pfad &
"\" & NameBisherMitEndung , _<span style="
color:#2ecc71">
FileFormat:=52, CreateBackup:=
False
Else
ThisWorkbook.SaveAs fileName:=Pfad &
"\" & NeuerName, _ <span style="
color:#2ecc71">
FileFormat:=52, CreateBackup:=
False
End
If
<span style=
"color:#2ecc71"
>