Thema Datum  Von Nutzer Rating
Antwort
24.04.2017 13:25:54 Fokus
NotSolved
24.04.2017 14:27:22 Gast67735
NotSolved
24.04.2017 15:04:23 Fokus
NotSolved
24.04.2017 16:44:04 Gast55034
NotSolved
25.04.2017 10:54:58 Fokus
NotSolved
25.04.2017 11:00:02 Fokus
NotSolved
25.04.2017 19:20:43 Gast94848
NotSolved
04.05.2017 08:46:18 Gast77528
NotSolved
04.05.2017 08:46:40 Fokus
NotSolved
11.05.2017 17:12:46 Fokus
NotSolved
11.05.2017 18:02:02 Gast98626
*****
Solved
11.05.2017 19:29:09 Fokus
NotSolved
15.05.2017 11:36:07 Fokus
NotSolved
15.05.2017 12:42:22 Gast24116
NotSolved
Rot Betriebszustand überprüfen
15.05.2017 13:03:07 Fokus
NotSolved
15.05.2017 13:18:17 Fokus
NotSolved
15.05.2017 14:45:28 Gast96727
NotSolved
15.05.2017 14:45:29 Gast94987
Solved
15.05.2017 15:55:11 Fokus
NotSolved

Ansicht des Beitrags:
Von:
Fokus
Datum:
15.05.2017 13:03:07
Views:
615
Rating: Antwort:
  Ja
Thema:
Betriebszustand überprüfen

Hallo! Hier nochmal der Code.

'Überprüfen, welcher Betriebszustand als letztes angegeben wurde
 

Dim letzte As Long
letzte = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
E = ActiveSheet.Cells(letzte, 15).Value  'Spalte O
 

        Select Case A
            Case 11
            If E <> "35" And E <> "14" And E <> "2*" Then
                MsgBox "Bitte den Turm anfahren!", vbOKOnly + vbCritical, "Meldung"
                txtLOT = ""
                txtSAP = ""
                Exit Sub
            End If
 
            Case 12, 13
             
                If E <> "36" And E <> "14" And E <> "4*" And E <> "2*" Then
                    MsgBox "Bitte den Turm ausfahren!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
                 
            Case 15
                     
                If E <> "36" And E <> "1*" And E <> "4*" And E <> "2*" Then
                    MsgBox "Bitte den Turm ausfahren!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
             
            Case 31, 32, 33, 34
             
                If E <> "36" And E <> "14" And E <> "2*" Then
                    MsgBox "Bitte den Turm ausfahren!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
                 
            Case 35
                 
                If E <> "36" And E <> "14" And E <> "4*" And E <> "31" And E <> "2*" Then
                    MsgBox "Bitte den letzten Betriebszustand überprüfen!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
             
            Case 36
             
                If E <> "11" And E <> "14" And E <> "2*" Then
                    MsgBox "Bitte den letzten Betriebszustand überprüfen!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
       
            Case 41
             
                If E <> "33" Then
                    MsgBox "Bitte auf CIP Komplett umbauen!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
       
            Case 42
            
                If E <> "34" Then
                    MsgBox "Bitte auf CIP Komplett mit Filterkammer umbauen!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
     
            Case 43, 44
     
                If E <> "32" Then
                    MsgBox "Bitte auf CIP Leitung umbauen!", vbOKOnly + vbCritical, "Meldung"
                    Exit Sub
                End If
            Case Else
 
        End Select

 

 

 

VG


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
24.04.2017 13:25:54 Fokus
NotSolved
24.04.2017 14:27:22 Gast67735
NotSolved
24.04.2017 15:04:23 Fokus
NotSolved
24.04.2017 16:44:04 Gast55034
NotSolved
25.04.2017 10:54:58 Fokus
NotSolved
25.04.2017 11:00:02 Fokus
NotSolved
25.04.2017 19:20:43 Gast94848
NotSolved
04.05.2017 08:46:18 Gast77528
NotSolved
04.05.2017 08:46:40 Fokus
NotSolved
11.05.2017 17:12:46 Fokus
NotSolved
11.05.2017 18:02:02 Gast98626
*****
Solved
11.05.2017 19:29:09 Fokus
NotSolved
15.05.2017 11:36:07 Fokus
NotSolved
15.05.2017 12:42:22 Gast24116
NotSolved
Rot Betriebszustand überprüfen
15.05.2017 13:03:07 Fokus
NotSolved
15.05.2017 13:18:17 Fokus
NotSolved
15.05.2017 14:45:28 Gast96727
NotSolved
15.05.2017 14:45:29 Gast94987
Solved
15.05.2017 15:55:11 Fokus
NotSolved