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:
786
Rating: Antwort:
  Ja
Thema:
Laufzeitfehler '-2147417848(80010108)'

Teil 4:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
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