Thema Datum  Von Nutzer Rating
Antwort
05.12.2020 11:31:08 Karl
Solved
05.12.2020 11:44:05 Gast47848
NotSolved
05.12.2020 11:46:35 Karl
NotSolved
05.12.2020 11:50:31 Gast80555
NotSolved
05.12.2020 12:00:23 Karl
NotSolved
05.12.2020 14:56:26 Gast51298
NotSolved
05.12.2020 15:43:04 Karl
NotSolved
05.12.2020 15:53:39 Karl
NotSolved
05.12.2020 18:03:14 Karl
NotSolved
05.12.2020 18:32:59 Mase
NotSolved
05.12.2020 19:15:53 Gast51298
NotSolved
05.12.2020 19:23:43 Gast51298
NotSolved
05.12.2020 22:34:43 Karl
NotSolved
05.12.2020 22:35:41 Karl
NotSolved
05.12.2020 22:36:45 Karl
NotSolved
05.12.2020 22:38:02 Karl
NotSolved
Rot Laufzeitfehler '-2147417848(80010108)'
05.12.2020 22:38:58 Karl
NotSolved
05.12.2020 12:31:17 Karl
NotSolved
06.12.2020 20:24:07 Gast89629
NotSolved
07.12.2020 15:37:25 Mase
NotSolved

Ansicht des Beitrags:
Von:
Karl
Datum:
05.12.2020 22:38:58
Views:
527
Rating: Antwort:
  Ja
Thema:
Laufzeitfehler '-2147417848(80010108)'

Teil 4:

Sub verplanen_S(par1, par2, par3, par4, par5, par6 As String)

With Worksheets("Sheet1")


For y = .Range("BQC1").Column To .Range("DTL1").Column
If Format(.Range("KC2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JR2")
ElseIf Format(.Range("KD2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JT2")
ElseIf Format(.Range("KE2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JU2")
ElseIf Format(.Range("KC2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("KD2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JS2")
End If
Next

For y = .Range("BQC1").Column To .Range("DTL1").Column
If Format(.Range("JW2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JI2")
ElseIf Format(.Range("JX2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JK2")
ElseIf Format(.Range("JY2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JL2")
ElseIf Format(.Range("JZ2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JN2")
ElseIf Format(.Range("KA2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JO2")
ElseIf Format(.Range("KB2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JQ2")
ElseIf Format(.Range("KE2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JU2")
ElseIf Format(.Range("JW2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("JX2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JJ2")
ElseIf Format(.Range("JY2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("JZ2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JM2")
ElseIf Format(.Range("KA2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("KB2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JP2")
End If
Next

For y = .Range("BQC1").Column To .Range("DTL1").Column
If Format(.Range("KJ2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("IZ2")
ElseIf Format(.Range("KN2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("IY2")
ElseIf Format(.Range("KV2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HX2")
ElseIf Format(.Range("KK2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HE2")
ElseIf Format(.Range("KL2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HF2")
ElseIf Format(.Range("KM2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HL2")
ElseIf Format(.Range("KT2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HP2")
ElseIf Format(.Range("KO2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HQ2")
ElseIf Format(.Range("KP2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HW2")
End If
Next

For y = .Range("BQC1").Column To .Range("DTL1").Column
If .Cells(1, y).Value >= .Range(par5).Value _
And .Cells(1, y).Value <= .Range(par6).Value _
And .Cells(par3, y).Value = "" _
Then
.Cells(par1, y).Value = 1
Else
.Cells(par1, y).Value = 0
End If
Next

End With

Call Ende

End Sub
Sub verplanen_O(par1, par2, par3, par4 As String)

With Worksheets("Sheet1")


For y = .Range("BQC1").Column To .Range("DTL1").Column
If Format(.Range("KC2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JR2")
ElseIf Format(.Range("KD2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JT2")
ElseIf Format(.Range("KE2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JU2")
ElseIf Format(.Range("KC2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("KD2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par4, y).Value = .Range("JS2")
End If
Next

For y = .Range("BQC1").Column To .Range("DTL1").Column
If Format(.Range("JW2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JI2")
ElseIf Format(.Range("JX2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JK2")
ElseIf Format(.Range("JY2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JL2")
ElseIf Format(.Range("JZ2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JN2")
ElseIf Format(.Range("KA2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JO2")
ElseIf Format(.Range("KB2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JQ2")
ElseIf Format(.Range("KE2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JU2")
ElseIf Format(.Range("JW2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("JX2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JJ2")
ElseIf Format(.Range("JY2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("JZ2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JM2")
ElseIf Format(.Range("KA2"), "hh:mm") < Format(.Cells(1, y), "hh:mm") _
And Format(.Range("KB2"), "hh:mm") > Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par3, y).Value = .Range("JP2")
End If
Next

For y = .Range("BQC1").Column To .Range("DTL1").Column
If Format(.Range("KJ2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("IZ2")
ElseIf Format(.Range("KN2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("IY2")
ElseIf Format(.Range("KV2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HX2")
ElseIf Format(.Range("KK2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HE2")
ElseIf Format(.Range("KL2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HF2")
ElseIf Format(.Range("KM2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HL2")
ElseIf Format(.Range("KT2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HP2")
ElseIf Format(.Range("KO2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HQ2")
ElseIf Format(.Range("KP2"), "hh:mm") = Format(.Cells(1, y), "hh:mm") _
Then
.Cells(par2, y) = .Range("HW2")
End If
Next

For y = .Range("BQC1").Column To .Range("DTL1").Column
If .Cells(par3, y).Value = "" _
Then
.Cells(par1, y).Value = 1
Else
.Cells(par1, y).Value = 0
End If
Next

End With

Call Ende

End Sub

Sub Auftrag_Ende()

With Sheets("Sheet1")
.Range("HB3:KW1500").Copy .Range("HB2")
.Range("KW1").Value = .Range("A13").Value - 1
.Range("A13").Value = .Range("KW1").Value
End With

Call Wiederholung

End Sub

Sub Wiederholung()

With Worksheets("Sheet1")
If .Range("KW1") > 0 _
Then
Call Berechnung_Prüfung
ElseIf .Range("KW1") = 0 _
Then
Call Endberechnung
End If
End With
End Sub

 


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
05.12.2020 11:31:08 Karl
Solved
05.12.2020 11:44:05 Gast47848
NotSolved
05.12.2020 11:46:35 Karl
NotSolved
05.12.2020 11:50:31 Gast80555
NotSolved
05.12.2020 12:00:23 Karl
NotSolved
05.12.2020 14:56:26 Gast51298
NotSolved
05.12.2020 15:43:04 Karl
NotSolved
05.12.2020 15:53:39 Karl
NotSolved
05.12.2020 18:03:14 Karl
NotSolved
05.12.2020 18:32:59 Mase
NotSolved
05.12.2020 19:15:53 Gast51298
NotSolved
05.12.2020 19:23:43 Gast51298
NotSolved
05.12.2020 22:34:43 Karl
NotSolved
05.12.2020 22:35:41 Karl
NotSolved
05.12.2020 22:36:45 Karl
NotSolved
05.12.2020 22:38:02 Karl
NotSolved
Rot Laufzeitfehler '-2147417848(80010108)'
05.12.2020 22:38:58 Karl
NotSolved
05.12.2020 12:31:17 Karl
NotSolved
06.12.2020 20:24:07 Gast89629
NotSolved
07.12.2020 15:37:25 Mase
NotSolved