Thema Datum  Von Nutzer Rating
Antwort
17.06.2018 12:40:00 Chris
NotSolved
Blau Zahlen vergleichen und Einordnen
19.06.2018 12:09:48 Andreas
NotSolved
19.06.2018 12:15:43 Gast96810
NotSolved
19.06.2018 12:17:37 Gast37100
NotSolved
20.06.2018 11:47:00 Chris
NotSolved
20.06.2018 12:36:38 Gast48904
NotSolved
20.06.2018 11:47:26 Chris
NotSolved

Ansicht des Beitrags:
Von:
Andreas
Datum:
19.06.2018 12:09:48
Views:
635
Rating: Antwort:
  Ja
Thema:
Zahlen vergleichen und Einordnen

Hallo Chris,
 

müsste der Code nicht so lauten:

For lngZeile = 2 To lngLetzteZeile                              'Schleife von 2 bis Ende

            
        If .Cells(lngZeile, 1).Value > .Cells(2, 2).Value And .Cells(lngZeile, 1).Value < .Cells(2, 3).Value Then
 
            .Cells(lngZeile, 1).Font.Bold = True                    'Fett
1
<code class="vb spaces" style="color: rgb(0, 0, 0); background: none !important; font-size: 1em !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; min-height: auto !important;">            </code><code class="vb comments" style="background: none !important; font-size: 1em !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; min-height: auto !important; color: rgb(0, 130, 0) !important;">'.Cells(lngZeile, 1).Interior.ColorIndex = 3             'Hintergrund Rot</code>
1
2
3
4
5
6
7
8
9
              For lngSpalte = 5 To lngLetzteZeile
          
                If .Cells(2, lngZeile).Value = "" Then
  
                  .Cells(lngSpalte,2).Value = .Cells(2,lngZeile).Value
  
                End If
              Next
<code class="vb keyword" style="border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-weight: bold !important; min-height: auto !important; color: rgb(0, 102, 153) !important;">Next</code><span style="color: rgb(0, 0, 0); font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;"> </span><code class="vb plain" style="color: rgb(0, 0, 0); border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; min-height: auto !important;">lngZeile</code>
1
?


Gruß
Andreas

 


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
17.06.2018 12:40:00 Chris
NotSolved
Blau Zahlen vergleichen und Einordnen
19.06.2018 12:09:48 Andreas
NotSolved
19.06.2018 12:15:43 Gast96810
NotSolved
19.06.2018 12:17:37 Gast37100
NotSolved
20.06.2018 11:47:00 Chris
NotSolved
20.06.2018 12:36:38 Gast48904
NotSolved
20.06.2018 11:47:26 Chris
NotSolved