Live-Forum - Die aktuellen Beiträge
Datum
Titel
16.10.2025 17:40:39
16.10.2025 17:25:38
Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

Formatierung

Forumthread: Formatierung

Formatierung
Beni
Guten Morgen zusammen
Kann mir jemand bei der Formatierung hefen?
1. .Cells(lngRow + 2, 10) = "Seitentotal" /Arial, Schriftgrösse 9 und Fett ?
2. .Cells(lngRow + 6, 2-10? ) Linie
3. .Cells(lngRow + 7, 2-10? ) Zeilenhöhe
Vielen Dank im vorraus
Anzeige

5
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Benutzer
Anzeige
AW: Formatierung
07.02.2010 10:42:46
Reinhard
Hallo Beni,
With .Range(.Cells(lngRow + 7, 2), .Cells(lngRow + 7, 10))
'Linie
'Zeilenhöhe
End With
Alles Andere kannst du durch Makro aufzeichnen ermitteln.
Gruß
Reinhard
Vielen Dank Reinhard
07.02.2010 10:50:38
Beni
.
Funzt nicht
07.02.2010 13:38:30
Beni
Peinlich aber wahr, ich bekomme das nicht hin:
.Cells(lngRow + 2, 10) = "Seitentotal"
.Cells(lngRow + 11, 10) = "Übertrag"
.Cells(lngRow + 8, 2) = "POS."
.Cells(lngRow + 8, 3) = "BEZEICHNUNG"
.Cells(lngRow + 8, 8) = "MENGE"
.Cells(lngRow + 8, 9) = "EINH."
.Cells(lngRow + 8, 10) = "E.-PREIS"
.Cells(lngRow + 8, 11) = "BETRAG"
Diese Zellen sollten Arial 9 formatiert werden

.Cells(lngRow + 1, 2 bis 11) sollte eine Linie erhalten.
Und Zeile + 6 sollte auf Zeilenhöhe .3 formatiert sein.
Anzeige
AW: Funzt nicht
07.02.2010 22:02:03
fcs
Hallo Beni,
dann muss man halt mal mit dem Recorder aufzeichnen, um die Syntax grob hinzubekommen.
Gruß
Franz
Sub aaTest()
Dim wks As Worksheet, lngRow As Long
Set wks = ActiveSheet
lngRow = 16
With wks
'Diese Zellen sollten Arial 9 formatiert werden
With .Cells(lngRow + 2, 10)
.Value = "Seitentotal"
With .Font
.Size = 9
.Name = "Arial"
End With
End With
With .Cells(lngRow + 11, 10)
.Value = "Übertrag"
With .Font
.Size = 9
.Name = "Arial"
End With
End With
.Cells(lngRow + 8, 2) = "POS."
.Cells(lngRow + 8, 3) = "BEZEICHNUNG"
.Cells(lngRow + 8, 8) = "MENGE"
.Cells(lngRow + 8, 9) = "EINH."
.Cells(lngRow + 8, 10) = "E.-PREIS"
.Cells(lngRow + 8, 11) = "BETRAG"
With .Range(.Cells(lngRow + 8, 2), .Cells(lngRow + 8, 3)).Font
.Size = 9
.Name = "Arial"
End With
With .Range(.Cells(lngRow + 8, 8), .Cells(lngRow + 8, 11)).Font
.Size = 9
.Name = "Arial"
End With
' sollte eine Linie erhalten.
With .Range(.Cells(lngRow + 1, 2), .Cells(lngRow + 1, 11)).Borders(xlEdgeBottom)
.LineStyle = xlContinuous
End With
'Und Zeile + 6 sollte auf Zeilenhöhe .3 formatiert sein.
.Rows(lngRow + 6).RowHeight = 3
End With
End Sub

Anzeige
Vielen Dank für deine Hilfe
08.02.2010 06:12:14
Beni
.
;

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Entdecke mehr
Finde genau, was du suchst

Die erweiterte Suchfunktion hilft dir, gezielt die besten Antworten zu finden

Suche nach den besten Antworten
Unsere beliebtesten Threads

Entdecke unsere meistgeklickten Beiträge in der Google Suche

Top 100 Threads jetzt ansehen
Anzeige