Beruflich Dokumente
Kultur Dokumente
'''2_2_LB##############################################
Sub AAAUUFAF()
TBB1.BackColor = &HC0FFFF
TBB2.BackColor = &HC0FFFF
KuNr.Enabled = True
KuNr.BackColor = &HC0FFFF
Dim IC As String
IC = CoB1
Sheets(IC).Activate
End If
AAAZ = CDbl(POMO.[a2])
AAAC = CDbl(POMO.[a3])
SPALTA1 = ""
SPALTA2 = ""
SPALTA3 = ""
SPALTA4 = ""
SPALTA5 = ""
SPALTA6 = ""
SPALTA7 = ""
SPALTB1 = ""
SPALTB2 = ""
SPALTB3 = ""
SPALTB4 = ""
SPALTB5 = ""
SPALTB6 = ""
SPALTB7 = ""
SPALTC1 = ""
SPALTC2 = ""
SPALTC3 = ""
SPALTC4 = ""
SPALTC5 = ""
SPALTC6 = ""
SPALTC7 = ""
SPALTD1 = ""
SPALTD2 = ""
SPALTD3 = ""
SPALTD4 = ""
SPALTD5 = ""
SPALTD6 = ""
SPALTD7 = ""
SPALTE1 = ""
SPALTE2 = ""
SPALTE3 = ""
SPALTE4 = ""
SPALTE5 = ""
SPALTE6 = ""
SPALTE7 = ""
SPALTF1 = ""
SPALTF2 = ""
SPALTF3 = ""
SPALTF4 = ""
SPALTF5 = ""
SPALTF6 = ""
SPALTF7 = ""
SPALTG1 = ""
SPALTG2 = ""
SPALTG3 = ""
SPALTG4 = ""
SPALTG5 = ""
SPALTG6 = ""
SPALTG7 = ""
SPALTA = ""
SPALTB = ""
SPALTC = ""
SPALTD = ""
SPALTE = ""
SPALTF = ""
SPALTG = ""
KuNr = ""
TBB1.Value = ""
TBB2.Value = ""
TBB3.Value = ""
TBB4.Value = ""
TBB5.Value = ""
TBB6.Value = ""
POMO.[a1] = ""
POMO.[b1] = ""
POMO.[c1] = ""
POMO.[d1] = ""
POMO.[e1] = ""
POMO.[F1] = ""
POMO.[g1] = ""
POMO.[h1] = ""
POMO.[i1] = ""
POMO.[j1] = ""
POMO.[k1] = ""
POMO.[L1] = ""
POMO.[m1] = ""
If POMO.[a3] = 1 Then
POMO.[a4] = 0
††† = POMO.[a4]
End If
If POMO.[a3] = 7 Then
POMO.[a4] = 6
††† = POMO.[a4]
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
TANA = ActiveSheet.Name
End If
Exit Sub
ERR:
End Sub
CheckBox2 = False
CheckBox3 = False
CheckBox4 = False
CheckBox5 = False
CheckBox6 = False
CommandButton8.Visible = False
With ListBox1
.ColumnCount = 6
.ColumnHeads = True
.ColumnWidths = 100 & ";" & 120 & ";" & 80 & ";" & 70 & ";" & 70 & ";" & 140
.BackColor = &HFFFF&
End With
With LLLNNN2
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox4.ListIndex
Else:
ListBox1.ListIndex = ListBox1.ListCount - 1
End If
End If
ListBox1.ListIndex = ComboBox8.ListIndex
Else:
ListBox1.ListIndex = ListBox1.ListCount - 1
End If
End If
End If
End Sub
CheckBox1 = False
CheckBox3 = False
CheckBox4 = False
CheckBox5 = False
CheckBox6 = False
CommandButton8.Visible = True
With ListBox1
.ColumnCount = 13
.ColumnHeads = True
.ColumnWidths = 60 & ";" & 70 & ";" & 100 & ";" & 100 & ";" & 120 & ";" & 70 & ";" & 70 & ";" &
70 & ";" & 70 & ";" & 100 & ";" & 100 & ";" & 70 & ";" & 70
.BackColor = &HFFFFFF
End With
With LLLNNN3
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox1.ListIndex
Else:
ListBox1.ListIndex = ListBox1.ListCount - 1
End If
End If
End Sub
CheckBox1 = False
CheckBox2 = False
CheckBox4 = False
CheckBox5 = False
CheckBox6 = False
CommandButton8.Visible = False
With ListBox1
.ColumnCount = 9
.ColumnHeads = True
.ColumnWidths = 70 & ";" & 70 & ";" & 100 & ";" & 100 & ";" & 120 & ";" & 70 & ";" & 70 & ";" &
70 & ";" & 100
.BackColor = &H80FF80
End With
With LLLNNN4
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox7.ListIndex
Else:
ListBox1.ListIndex = ListBox1.ListCount - 1
End If
End If
End Sub
CheckBox1 = False
CheckBox2 = False
CheckBox3 = False
CheckBox5 = False
CheckBox6 = False
CommandButton8.Visible = True
With ListBox1
.ColumnCount = 201
.ColumnHeads = True
.BackColor = &H80C0FF
End With
With LLLNNN5
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox6.ListIndex
Else:
ListBox1.ListIndex = ListBox1.ListCount - 1
End If
End If
End Sub
CheckBox1 = False
CheckBox2 = False
CheckBox3 = False
CheckBox4 = False
CheckBox6 = False
CommandButton8.Visible = True
With ListBox1
.ColumnCount = 4
.ColumnHeads = True
.ColumnWidths = 140 & ";" & 140 & ";" & 140 & ";" & 100
.BackColor = &HE0E0E0
End With
With LLLNNN2
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox5.ListIndex
End If
End If
End If
End Sub
CheckBox1 = False
CheckBox2 = False
CheckBox3 = False
CheckBox4 = False
CheckBox5 = False
CommandButton8.Visible = False
End If
With ListBox1
.ColumnCount = 201
.ColumnHeads = True
.BackColor = &H80C0FF
End With
With LLLNNN6
ListBox1.RowSource = .Range(.Cells(2, 1), .Cells(.Cells(Rows.Count, 1).End(xlUp).Row,
201)).Address(External:=True)
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox6.ListIndex
Else:
ListBox1.ListIndex = ListBox1.ListCount - 1
End If
End If
With ListBox1
.ColumnCount = 13
.ColumnHeads = True
.ColumnWidths = 60 & ";" & 70 & ";" & 100 & ";" & 100 & ";" & 120 & ";" & 70 & ";" & 70 & ";" &
70 & ";" & 70 & ";" & 100 & ";" & 100 & ";" & 70 & ";" & 70
.BackColor = &HFFFFFF
End With
With LLLNNN6
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox1.ListIndex
Else:
ListBox1.ListIndex = ListBox1.ListCount - 1
End If
End If
With ListBox1
.ColumnCount = 4
.ColumnHeads = True
.ColumnWidths = 140 & ";" & 140 & ";" & 140 & ";" & 100
.BackColor = &HE0E0E0
End With
With LLLNNN6
End With
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox5.ListIndex
End If
ListBox1.ListIndex = ComboBox10.ListIndex
End If
End If
End Sub
CommandButton4.Visible = False
CommandButton4.Visible = True
CommandButton1.Visible = False
End If
CommandButton1.Visible = True
End If
††† = CDbl(LLLNNN3.Range("a2:a1048500").Find(What:=ComboBox1.Value,
lookat:=xlWhole).Row)
End If
End If
End If
Call CheckBox2_Click
Exit Sub
EERR:
TextBox1.Value = ""
ComboBox2.Value = ""
ComboBox3.Value = ""
ComboBox4.Value = ""
Label12.Caption = ""
Label13.Caption = ""
TextBox2.Value = ""
TextBox3.Value = ""
ComboBox5.Value = ""
TextBox4.Value = ""
End Sub
TextBox7.Value = "1"
CheckBox1 = False
CheckBox3 = False
CheckBox4 = False
CheckBox6 = False
CheckBox2 = True
Call CheckBox2_Click
Exit Sub
EERR:
End Sub
††† = CDbl(LLLNNN3.Range("a2:a1048500").Find(What:=ComboBox1.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
ComboBox1.Value = ""
End Sub
Private Sub ComboBox10_Change()
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox10.ListIndex
End If
Exit Sub
EERR:
End Sub
CheckBox5 = False
CheckBox5 = True
ComboBox5.Value = ""
Exit Sub
EERR:
End Sub
End If
Exit Sub
EERR:
ComboBox10.Value = ""
End Sub
CheckBox2 = False
CheckBox2 = True
Exit Sub
EERR:
End Sub
ComboBox2.Value = ""
End If
Exit Sub
EERR:
End Sub
ComboBox8.Value = ""
ComboBox9.Value = ""
Label24.Caption = ""
Label25.Caption = ""
ComboBox4.Value = ""
Label12.Caption = ""
Label13.Caption = ""
††† = CDbl(LLLNNN2.Range("a2:a1048500").Find(What:=ComboBox3.Value,
lookat:=xlWhole).Row)
End If
End If
Call CheckBox1_Click
Exit Sub
EERR:
End Sub
TextBox7.Value = ""
TextBox7.Value = "2"
CheckBox2 = False
CheckBox3 = False
CheckBox4 = False
CheckBox6 = False
Call CheckBox1_Click
††† = CDbl(LLLNNN2.Range("a2:a1048500").Find(What:=ComboBox3.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
End Sub
††† = CDbl(LLLNNN2.Range("a2:a1048500").Find(What:=ComboBox3.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
ComboBox3.Value = ""
End Sub
ComboBox3.Value = ""
ComboBox8.Value = ""
ComboBox9.Value = ""
Label24.Caption = ""
Label25.Caption = ""
Label12.Caption = ""
Label13.Caption = ""
††† = CDbl(LLLNNN2.Range("b2:b1048500").Find(What:=ComboBox4.Value,
lookat:=xlWhole).Row)
ComboBox3.Value = LLLNNN2.Cells(†††, 1).Value
End If
End If
Call CheckBox1_Click
Exit Sub
EERR:
End Sub
TextBox7.Value = ""
TextBox7.Value = "3"
CheckBox2 = False
CheckBox3 = False
CheckBox4 = False
CheckBox6 = False
Call CheckBox1_Click
††† = CDbl(LLLNNN2.Range("b2:b1048500").Find(What:=ComboBox4.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
End Sub
††† = CDbl(LLLNNN2.Range("b2:b1048500").Find(What:=ComboBox4.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
ComboBox4.Value = ""
End Sub
ListBox1.ListIndex = ListBox1.ListCount - 1
ListBox1.ListIndex = ComboBox5.ListIndex
End If
Exit Sub
EERR:
End Sub
CheckBox5 = False
CheckBox5 = True
ComboBox10.Value = ""
Exit Sub
EERR:
End Sub
††† = CDbl(LLLNNN2.Range("g2:g1048500").Find(What:=ComboBox5.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
ComboBox5.Value = ""
End Sub
ComboBox7.Clear
ComboBox7.Value = ""
LLLNNN4.Range("a16:i35") = ""
LLLNNN4.Cells(13, 1) = "Entnahmeschein"
LLLNNN4.Cells(13, 4) = "Nr.:"
LLLNNN4.Cells(13, 5) = ComboBox6.Value
LLLNNN4.Cells(15, 1) = "Position-Nr"
LLLNNN4.Cells(15, 2) = "Datum"
LLLNNN4.Cells(15, 3) = "Artikel-Nr."
LLLNNN4.Cells(15, 4) = "Bezeichnung"
LLLNNN4.Cells(15, 5) = "Einheit"
LLLNNN4.Cells(15, 6) = "Preis"
LLLNNN4.Cells(15, 7) = "Menge"
LLLNNN4.Cells(15, 8) = "Betrag"
LLLNNN4.Cells(15, 9) = "Lagerplatz"
TextBox8.Value = ComboBox6.Value
††† = CDbl(LLLNNN5.Range("a2:a1048500").Find(What:=ComboBox6.Value,
lookat:=xlWhole).Row)
For SCHOT = 0 To 19
AAAC = 2 + SCHOT * 10
If LLLNNN5.Cells(†††, AAAC).Value <> "" And LLLNNN5.Cells(†††, AAAC).Value <> "_" Then
With ComboBox7
End With
End If
Next SCHOT
CheckBox4 = True
Call CheckBox4_Click
End If
End If
Exit Sub
EERR:
TextBox5.Value = ""
ComboBox8.Value = ""
ComboBox4.Value = ""
TextBox6.Value = ""
Label26.Caption = ""
ComboBox5.Value = ""
ComboBox10.Value = ""
End Sub
TextBox7.Value = ""
TextBox7.Value = "6"
CheckBox1 = False
CheckBox2 = False
CheckBox3 = False
CheckBox6 = False
CheckBox4 = True
Call CheckBox4_Click
Exit Sub
EERR:
End Sub
††† = CDbl(LLLNNN5.Range("a2:a1048500").Find(What:=ComboBox6.Value,
lookat:=xlWhole).Row)
Exit Sub
EERR:
ComboBox6.Value = ""
End Sub
ComboBox1.Value = ""
CommandButton2.Visible = True
††† = CDbl(LLLNNN5.Range("a2:a1048500").Find(What:=ComboBox6.Value,
lookat:=xlWhole).Row)
AAAC = (CDbl(ComboBox7.Value) - 1) * 10 + 1
CommandButton2.Visible = False
End If
End If
End If
CheckBox3 = False
CheckBox3 = True
Exit Sub
EERR:
End Sub
TextBox7.Value = "7"
CheckBox1 = False
CheckBox2 = False
CheckBox4 = False
CheckBox6 = False
AAAR = 16
For SCHOT = 0 To 19
AAAC = 2 + SCHOT * 10
If LLLNNN5.Cells(†††, AAAC).Value <> "" And LLLNNN5.Cells(†††, AAAC).Value <> "_" Then
For PNPN = 0 To 8
Next PNPN
AAAR = AAAR + 1
End If
Next SCHOT
End If
End If
CheckBox3 = False
CheckBox3 = True
Exit Sub
EERR:
End Sub
††† = CDbl(LLLNNN5.Range("a2:a1048500").Find(What:=ComboBox6.Value,
lookat:=xlWhole).Row)
KKKK = 0
For SCHOT = 0 To 19
AAAC = 2 + SCHOT * 10
KKKK = KKKK + 1
End If
Next SCHOT
If KKKK = 0 Then
ComboBox7.Value = ""
End If
End If
End If
Exit Sub
EERR:
ComboBox7.Value = ""
End Sub
ComboBox3.Value = ""
ComboBox4.Value = ""
Label12.Caption = ""
Label13.Caption = ""
ComboBox9.Value = ""
Label24.Caption = ""
Label25.Caption = ""
††† = CDbl(LLLNNN2.Range("a2:a1048500").Find(What:=ComboBox8.Value,
lookat:=xlWhole).Row)
End If
End If
Call CheckBox1_Click
Exit Sub
EERR:
End Sub
TextBox7.Value = ""
TextBox7.Value = "8"
CheckBox2 = False
CheckBox3 = False
CheckBox4 = False
CheckBox6 = False
Call CheckBox1_Click
††† = CDbl(LLLNNN2.Range("a2:a1048500").Find(What:=ComboBox8.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
End Sub
End If
Exit Sub
EERR:
ComboBox8.Value = ""
End Sub
ComboBox8.Value = ""
ComboBox3.Value = ""
ComboBox4.Value = ""
Label12.Caption = ""
Label13.Caption = ""
Label24.Caption = ""
Label25.Caption = ""
††† = CDbl(LLLNNN2.Range("b2:b1048500").Find(What:=ComboBox9.Value,
lookat:=xlWhole).Row)
End If
End If
Call CheckBox1_Click
Exit Sub
EERR:
End Sub
TextBox7.Value = ""
TextBox7.Value = "9"
CheckBox2 = False
CheckBox3 = False
CheckBox4 = False
CheckBox6 = False
Call CheckBox1_Click
††† = CDbl(LLLNNN2.Range("b2:b1048500").Find(What:=ComboBox9.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
End Sub
††† = CDbl(LLLNNN2.Range("b2:b1048500").Find(What:=ComboBox9.Value,
lookat:=xlWhole).Row)
End If
Exit Sub
EERR:
ComboBox9.Value = ""
End Sub
ComboBox2.SetFocus
TextBox3.SetFocus
TextBox4.SetFocus
ComboBox2.SetFocus
Exit Sub
End If
ComboBox3.SetFocus
Exit Sub
End If
TextBox2.Value = 0
End If
TextBox3.Value = 0
End If
ComboBox5.SetFocus
Exit Sub
End If
AAAL = CDbl(LLLNNN2.Range("g2:g1048500").Find(What:=ComboBox5.Value,
lookat:=xlWhole).Row)
MsgBox "Auf dem gewählten Lagerplatz ist schon anderer Artikel gebucht!", 48,
"https://excel.hpage.de "
ComboBox5.SetFocus
Exit Sub
End If
KKKK = 0
If KKKK = 0 Then
End If
End If
Next SCHOT
††† = KKKK
End If
AAAR = CDbl(LLLNNN2.Range("a2:a1048500").Find(What:=ComboBox3.Value,
lookat:=xlWhole).Row)
If ††† > 1048500 Then
ComboBox1.SetFocus
Exit Sub
End If
LLLNNN3.Cells(†††, 1) = ††† - 1
LLLNNN3.Cells(†††, 2) = Date
Else:
LLLNNN3.Cells(†††, 2) = CDate(TextBox1.Value)
End If
LLLNNN3.Cells(†††, 3) = ComboBox2.Value
LLLNNN3.Cells(†††, 4) = ComboBox3.Value
LLLNNN3.Cells(†††, 5) = ComboBox4.Value
LLLNNN3.Cells(†††, 6) = Label12.Caption
LLLNNN3.Cells(†††, 8) = CDbl(TextBox2.Value)
LLLNNN3.Cells(†††, 9) = CDbl(TextBox3.Value)
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Protect Password:="3"
End If
LLLNNN3.Cells(†††, 8) = 0
LLLNNN3.Cells(†††, 9) = CDbl(TextBox3.Value)
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Cells(AAAR, 4) = LLLNNN2.Cells(AAAR, 4) + 0
LLLNNN2.Protect Password:="3"
End If
LLLNNN3.Cells(†††, 8) = 0
LLLNNN3.Cells(†††, 9) = CDbl(TextBox3.Value) * -1
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Cells(AAAR, 4) = LLLNNN2.Cells(AAAR, 4) + 0
LLLNNN2.Protect Password:="3"
End If
LLLNNN3.Cells(†††, 7) = LLLNNN2.Cells(AAAR, 6)
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Cells(AAAL, 8) = ComboBox3.Value
LLLNNN2.Cells(AAAL, 9) = ComboBox4.Value
LLLNNN2.Protect Password:="3"
With LLLNNN2
End With
With LLLNNN3
End With
SLOWO = ComboBox3.Value
ComboBox3.SetFocus
ComboBox3.Value = ""
ComboBox3.Value = SLOWO
ComboBox1.SetFocus
ComboBox1.Value = ††† - 1
ComboBox1.SetFocus
Exit Sub
End If
Exit Sub
End Sub
Sub COAUUFAF()
TBB1.BackColor = &HC0FFFF
TBB2.BackColor = &HC0FFFF
KuNr.Enabled = True
KuNr.BackColor = &HC0FFFF
Dim IC As String
IC = CoB1
Sheets(IC).Activate
End If
AAAZ = CDbl(POMO.[a2])
AAAC = CDbl(POMO.[a3])
SPALTA1 = ""
SPALTA2 = ""
SPALTA3 = ""
SPALTA4 = ""
SPALTA5 = ""
SPALTA6 = ""
SPALTA7 = ""
SPALTB1 = ""
SPALTB2 = ""
SPALTB3 = ""
SPALTB4 = ""
SPALTB5 = ""
SPALTB6 = ""
SPALTB7 = ""
SPALTC1 = ""
SPALTC2 = ""
SPALTC3 = ""
SPALTC4 = ""
SPALTC5 = ""
SPALTC6 = ""
SPALTC7 = ""
SPALTD1 = ""
SPALTD2 = ""
SPALTD3 = ""
SPALTD4 = ""
SPALTD5 = ""
SPALTD6 = ""
SPALTD7 = ""
SPALTE1 = ""
SPALTE2 = ""
SPALTE3 = ""
SPALTE4 = ""
SPALTE5 = ""
SPALTE6 = ""
SPALTE7 = ""
SPALTF1 = ""
SPALTF2 = ""
SPALTF3 = ""
SPALTF4 = ""
SPALTF5 = ""
SPALTF6 = ""
SPALTF7 = ""
SPALTG1 = ""
SPALTG2 = ""
SPALTG3 = ""
SPALTG4 = ""
SPALTG5 = ""
SPALTG6 = ""
SPALTG7 = ""
SPALTA = ""
SPALTB = ""
SPALTC = ""
SPALTD = ""
SPALTE = ""
SPALTF = ""
SPALTG = ""
KuNr = ""
TBB1.Value = ""
TBB2.Value = ""
TBB3.Value = ""
TBB4.Value = ""
TBB5.Value = ""
TBB6.Value = ""
POMO.[a1] = ""
POMO.[b1] = ""
POMO.[c1] = ""
POMO.[d1] = ""
POMO.[e1] = ""
POMO.[F1] = ""
POMO.[g1] = ""
POMO.[h1] = ""
POMO.[i1] = ""
POMO.[j1] = ""
POMO.[k1] = ""
POMO.[L1] = ""
POMO.[m1] = ""
If POMO.[a3] = 1 Then
POMO.[a4] = 0
††† = POMO.[a4]
End If
If POMO.[a3] = 7 Then
POMO.[a4] = 6
††† = POMO.[a4]
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
TANA = ActiveSheet.Name
End If
Exit Sub
ERR:
End Sub
ComboBox6.Value = ""
End If
KKKK = 0
If KKKK = 0 Then
End If
End If
Next SCHOT
AAAR = KKKK
ComboBox6.SetFocus
Exit Sub
End If
ComboBox8.SetFocus
Exit Sub
End If
ComboBox8.SetFocus
TextBox6.SetFocus
ComboBox10.SetFocus
††† = CDbl(LLLNNN2.Range("a2:a1048500").Find(What:=ComboBox8.Value,
lookat:=xlWhole).Row)
TextBox6.SetFocus
Exit Sub
End If
TextBox6.SetFocus
Exit Sub
End If
Exit Sub
End If
ComboBox10.SetFocus
Exit Sub
End If
AAAL = CDbl(LLLNNN2.Range("g2:g1048500").Find(What:=ComboBox10.Value,
lookat:=xlWhole).Row)
MsgBox "Auf dem gewählten Lagerplatz gibt es kein gewählter Artikel!", 48, "https://excel.hpage.de "
ComboBox10.SetFocus
Exit Sub
End If
MsgBox "Auf dem gewählten Lagerplatz gibt es zu wenig Artikel!", 48, "https://excel.hpage.de "
TextBox6.SetFocus
Exit Sub
End If
MsgBox "Auf dem gewählten Lagerplatz gibt es kein Artikel!", 48, "https://excel.hpage.de "
ComboBox10.SetFocus
Exit Sub
End If
MsgBox "Auf dem gewählten Lagerplatz gibt es kein gewählter Artikel!", 48, "https://excel.hpage.de "
ComboBox10.SetFocus
Exit Sub
End If
TextBox6.SetFocus
Exit Sub
End If
KKKK = 0
If KKKK = 0 Then
End If
End If
Next SCHOT
LLLZ = KKKK
End If
LLLZ = CDbl(LLLNNN5.Range("a2:a1048500").Find(What:=CDbl(ComboBox6.Value),
lookat:=xlWhole).Row)
End If
KKKK = 0
For SCHOT = 0 To 20
If KKKK = 0 Then
AAAC = 2 + SCHOT * 10
KKKK = KKKK + 1
End If
LLLC = AAAC
PPPP = SCHOT + 1
End If
Next SCHOT
MsgBox "In einem Entnahmeschein erstellt das Programm nur 20 Positionen!", 48,
"https://excel.hpage.de "
Exit Sub
End If
KKKK = 0
If KKKK = 0 Then
End If
End If
Next SCHOT
GGGZ = KKKK
ComboBox10.SetFocus
Exit Sub
End If
LLLNNN3.Cells(GGGZ, 1) = GGGZ - 1
LLLNNN3.Cells(GGGZ, 2) = Date
Else:
LLLNNN3.Cells(GGGZ, 2) = CDate(TextBox5.Value)
End If
LLLNNN3.Cells(GGGZ, 3) = "Entnahme"
LLLNNN3.Cells(GGGZ, 4) = ComboBox8.Value
LLLNNN3.Cells(GGGZ, 5) = ComboBox9.Value
LLLNNN3.Cells(GGGZ, 6) = Label24.Caption
LLLNNN3.Cells(GGGZ, 7) = CDbl(Label25.Caption)
LLLNNN3.Cells(GGGZ, 8) = CDbl(TextBox6.Value) * -1
LLLNNN3.Cells(GGGZ, 9) = CDbl(Label26.Caption) * -1
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Cells(†††, 6) = ""
End If
LLLNNN2.Protect Password:="3"
End If
Else:
LLLNNN5.Cells(LLLZ, LLLC + 1) = CDate(TextBox5.Value)
End If
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Cells(AAAL, 8) = ComboBox8.Value
LLLNNN2.Cells(AAAL, 9) = ComboBox9.Value
LLLNNN2.Cells(AAAL, 8) = "_"
LLLNNN2.Cells(AAAL, 9) = "_"
End If
LLLNNN2.Protect Password:="3"
With LLLNNN5
End If
ComboBox8.SetFocus
ComboBox6.SetFocus
ComboBox6.Value = ""
ComboBox6.Value = LLLZ - 1
ComboBox7.Value = PPPP
ComboBox7.SetFocus
With LLLNNN3
End With
Exit Sub
End Sub
LLLNNN4.[e13] = ""
End If
ComboBox6.SetFocus
ComboBox7.SetFocus
LLLNNN4.Activate
LLLNNN4.[e13].Select
Dim SHOT As Long
For SHOT = 1 To 9
ActiveSheet.Cells(Rows.Count, SHOT).EntireColumn.AutoFit
Next SHOT
With ActiveSheet.PageSetup
.RightHeader = ActiveSheet.Name & " " & ActiveSheet.[e13] & ": &P/&N"
End With
ActiveWindow.View = xlNormalView
UserForm1.Hide
Exit Sub
EERR:
End Sub
UserForm1.Hide
UserForm1.Show
Exit Sub
End If
UserForm1.Show
Exit Sub
Else:
††† = 0
††† = CDbl(LLLNNN3.Range("a2:a1048500").Find(What:=ComboBox1.Value,
lookat:=xlWhole).Row)
If ††† = 0 Then
UserForm1.Show
Exit Sub
End If
AAAR = 0
If AAAR = 0 Then
MsgBox "In dem Buchungssatz " & ComboBox1.Value & " Artikelnummer existiert nicht mehr, der
kann nicht geloescht werden!", 48, "https://excel.hpage.de "
UserForm1.Show
Exit Sub
End If
AALP = 0
If AALP = 0 Then
MsgBox "In dem Buchungssatz " & ComboBox1.Value & " Lagerplatz existiert nicht mehr, der kann
nicht geloescht werden!", 48, "https://excel.hpage.de "
UserForm1.Show
Exit Sub
End If
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Cells(AAAR, 4) = 0
End If
LLLNNN2.Cells(AAAR, 5) = 0
End If
End If
LLLNNN2.Protect Password:="3"
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Cells(AALP, 10) = 0
End If
LLLNNN2.Cells(AALP, 9) = "_"
LLLNNN2.Cells(AALP, 8) = "_"
End If
LLLNNN2.Protect Password:="3"
LLLNNN3.Cells(†††, 1) = "_"
LLLNNN3.Cells(†††, 2) = "_"
AASZ = 0
End If
LLLNNN3.Cells(†††, 3) = "_"
LLLNNN3.Cells(†††, 4) = "_"
LLLNNN3.Cells(†††, 5) = "_"
LLLNNN3.Cells(†††, 6) = "_"
LLLNNN3.Cells(†††, 7) = "_"
LLLNNN3.Cells(†††, 8) = "_"
LLLNNN3.Cells(†††, 9) = "_"
ComboBox1.Value = ""
For SCHOT = 1 To 10
Next SCHOT
SCHOT = 0
For ††† = 0 To 19
AAAC = 2 + ††† * 10
SCHOT = SCHOT + 1
End If
Next †††
If SCHOT = 0 Then
LLLNNN5.Cells(AASZ, 1) = "_"
End If
ComboBox6.Value = ""
ComboBox6.SetFocus
ComboBox7.SetFocus
ComboBox7.Value = ""
End If
UserForm1.Show
End If
End Sub
Sub crrrch()
End If
Exit Sub
EERR:
End Sub
UserForm1.Hide
AAAA = MsgBox("" & "Moechten Sie wirklich alle Entnahmescheine loeschen?" & " " & "", vbYesNo,
"https://excel.hpage.de Liste loeschen")
UserForm1.Show
Exit Sub
Else
End If
UserForm1.Show
Exit Sub
Else
End If
LLLNNN5.Range("a2:gs1048501") = ""
UserForm1.Show
EERR:
End Sub
UserForm1.Hide
AAAA = MsgBox("" & "Moechten wirklich alle Buchungssaetze im Grundbuch loeschen?" & " " & "",
vbYesNo, "https://excel.hpage.de Grundbuch loeschen")
UserForm1.Show
Exit Sub
Else
End If
UserForm1.Show
Exit Sub
Else
End If
LLLNNN3.Range("a2:m1048501") = ""
UserForm1.Show
EERR:
End Sub
UserForm1.Hide
AAAA = MsgBox("" & "Moechten wirklich Artikelbestand loeschen?" & " " & "", vbYesNo,
"https://excel.hpage.de Alle Artikel loeschen")
UserForm1.Show
Exit Sub
Else
End If
UserForm1.Show
Exit Sub
Else
End If
LLLNNN2.Unprotect Password:="3"
LLLNNN2.Range("d2:f1048501") = ""
LLLNNN2.Range("h2:j1048501") = ""
LLLNNN2.Protect Password:="3"
UserForm1.Show
EERR:
End Sub
LLLNNN3.Activate
Cells.Select
Selection.Copy
LLLNNN3.[a1].Select
LLLNNN6.Activate
ActiveWindow.View = xlNormalView
LLLNNN6.AutoFilterMode = False
LLLNNN6.[a1].Select
LLLNNN6.Paste
LLLNNN6.[a1].Select
Application.CutCopyMode = False
For ††† = 1 To 13
ActiveSheet.Cells(Rows.Count, †††).EntireColumn.AutoFit
Next †††
With ActiveSheet.PageSetup
End With
UserForm1.Hide
End If
LLLNNN5.Activate
Cells.Select
Selection.Copy
LLLNNN5.[a1].Select
LLLNNN6.Activate
ActiveWindow.View = xlNormalView
LLLNNN6.AutoFilterMode = False
LLLNNN6.[a1].Select
LLLNNN6.Paste
LLLNNN6.[a1].Select
Application.CutCopyMode = False
ActiveSheet.Cells(Rows.Count, †††).EntireColumn.AutoFit
Next †††
With ActiveSheet.PageSetup
End With
UserForm1.Hide
End If
Cells.Select
Selection.Copy
LLLNNN2.[a1].Select
LLLNNN6.Activate
ActiveWindow.View = xlNormalView
LLLNNN6.AutoFilterMode = False
LLLNNN6.[a1].Select
LLLNNN6.Paste
LLLNNN6.Columns("A:F").Select
Selection.Delete Shift:=xlToLeft
LLLNNN6.[a1].Select
Application.CutCopyMode = False
For ††† = 1 To 4
ActiveSheet.Cells(Rows.Count, †††).EntireColumn.AutoFit
Next †††
With ActiveSheet.PageSetup
End With
UserForm1.Hide
End If
Exit Sub
EERR:
End Sub
TextBox1.SetFocus
ComboBox1.SetFocus
End If
Exit Sub
EERR:
End Sub
TextBox7.Value = ""
Exit Sub
EERR:
End Sub
CheckBox4 = True
End If
Exit Sub
EERR:
End Sub
TextBox7.Value = ""
Exit Sub
EERR:
End Sub
CheckBox2 = False
CheckBox2 = True
Exit Sub
EERR:
End Sub
End If
Exit Sub
EERR:
TextBox1.Value = Date
End Sub
CheckBox2 = False
CheckBox2 = True
Exit Sub
EERR:
End Sub
TextBox2.Value = CDbl(TextBox2.Value)
TextBox2.Value = CDbl(TextBox2.Value) * -1
End If
End If
Exit Sub
EERR:
TextBox2.Value = ""
End Sub
TextBox3.Value = CDbl(TextBox3.Value) * -1
End If
End If
Exit Sub
EERR:
End Sub
CheckBox2 = False
CheckBox2 = True
Exit Sub
EERR:
End Sub
TextBox3.Value = CDbl(TextBox3.Value)
End If
Exit Sub
EERR:
TextBox3.Value = ""
End Sub
CheckBox2 = False
CheckBox2 = True
Exit Sub
EERR:
End Sub
CheckBox3 = False
CheckBox3 = True
Exit Sub
EERR:
End Sub
TextBox5.Value = CDate(TextBox5.Value)
End If
Exit Sub
EERR:
TextBox5.Value = Date
End Sub
CheckBox3 = False
CheckBox3 = True
Exit Sub
EERR:
End Sub
End If
Exit Sub
EERR:
TextBox6.Value = ""
Label26.Caption = ""
End Sub
CheckBox1 = True
End If
CheckBox1 = True
End If
CheckBox1 = True
End If
CheckBox1 = True
End If
CheckBox2 = True
End If
CheckBox3 = True
End If
CheckBox4 = True
End If
Exit Sub
EERR:
End Sub
Call ZZUUFF
With UserForm1
.Height = 515
.Width = 575
End With
ComboBox2.Clear
With ComboBox2
.AddItem "Zugang"
.AddItem "Bezugskosten"
.AddItem "Gutschrift/Nachlaesse"
End With
Call crrrch
With LLLNNN2
End With
With LLLNNN3
End With
With LLLNNN5
End With
EERR:
End Sub
Sub ZZUUFF()
SCHRI = ""
SCHRI = LLLNNN1.Name
End If
SCHRI = ""
SCHRI = LLLNNN2.Name
End If
SCHRI = ""
SCHRI = LLLNNN3.Name
End If
SCHRI = ""
SCHRI = LLLNNN4.Name
End If
SCHRI = ""
SCHRI = LLLNNN5.Name
End If
SCHRI = ""
SCHRI = LLLNNN6.Name
End If
For ††† = 1 To 2
TSCH = 1000000
End If
Next †††
For ††† = 1 To 13
TSCH = 1000000
End If
Next †††
For ††† = 1 To 5
TSCH = 1000000
End If
Next †††
For ††† = 1 To 4
TSCH = 1000000
End If
Next †††
SCHRI = ""
SCHRI = CommandButton1.Left
End If
For ††† = 14 To 26
TSCH = 1000000
End If
Next †††
For ††† = 6 To 10
TSCH = 1000000
End If
Next †††
For ††† = 5 To 6
TSCH = 1000000
End If
Next †††
For ††† = 2 To 3
TSCH = 1000000
End If
Next †††
For ††† = 4 To 8
TSCH = 1000000
End If
Next †††
For ††† = 1 To 6
TSCH = 1000000
End If
Next †††
SCHRI = ""
SCHRI = ListBox1.Left
If SCHRI = "" Then
End If
For ††† = 7 To 8
TSCH = 1000000
End If
Next †††
End Sub
Sub ZZZAUUFAF()
TBB1.BackColor = &HC0FFFF
TBB2.BackColor = &HC0FFFF
KuNr.Enabled = True
KuNr.BackColor = &HC0FFFF
Dim IC As String
IC = CoB1
Sheets(IC).Activate
End If
If ActiveSheet.Name <> "Zailer" And ActiveSheet.Name <> "POMO" Then
AAAZ = CDbl(POMO.[a2])
AAAC = CDbl(POMO.[a3])
SPALTA1 = ""
SPALTA2 = ""
SPALTA3 = ""
SPALTA4 = ""
SPALTA5 = ""
SPALTA6 = ""
SPALTA7 = ""
SPALTB1 = ""
SPALTB2 = ""
SPALTB3 = ""
SPALTB4 = ""
SPALTB5 = ""
SPALTB6 = ""
SPALTB7 = ""
SPALTC1 = ""
SPALTC2 = ""
SPALTC3 = ""
SPALTC4 = ""
SPALTC5 = ""
SPALTC6 = ""
SPALTC7 = ""
SPALTD1 = ""
SPALTD2 = ""
SPALTD3 = ""
SPALTD4 = ""
SPALTD5 = ""
SPALTD6 = ""
SPALTD7 = ""
SPALTE1 = ""
SPALTE2 = ""
SPALTE3 = ""
SPALTE4 = ""
SPALTE5 = ""
SPALTE6 = ""
SPALTE7 = ""
SPALTF1 = ""
SPALTF2 = ""
SPALTF3 = ""
SPALTF4 = ""
SPALTF5 = ""
SPALTF6 = ""
SPALTF7 = ""
SPALTG1 = ""
SPALTG2 = ""
SPALTG3 = ""
SPALTG4 = ""
SPALTG5 = ""
SPALTG6 = ""
SPALTG7 = ""
SPALTA = ""
SPALTB = ""
SPALTC = ""
SPALTD = ""
SPALTE = ""
SPALTF = ""
SPALTG = ""
KuNr = ""
TBB1.Value = ""
TBB2.Value = ""
TBB3.Value = ""
TBB4.Value = ""
TBB5.Value = ""
TBB6.Value = ""
POMO.[a1] = ""
POMO.[b1] = ""
POMO.[c1] = ""
POMO.[d1] = ""
POMO.[e1] = ""
POMO.[F1] = ""
POMO.[g1] = ""
POMO.[h1] = ""
POMO.[i1] = ""
POMO.[j1] = ""
POMO.[k1] = ""
POMO.[L1] = ""
POMO.[m1] = ""
If POMO.[a3] = 1 Then
POMO.[a4] = 0
††† = POMO.[a4]
End If
If POMO.[a3] = 7 Then
POMO.[a4] = 6
††† = POMO.[a4]
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
TANA = ActiveSheet.Name
End If
Exit Sub
ERR:
End Sub
'''2_2_LB##############################################