Live-Forum - Die aktuellen Beiträge
Anzeige
Archiv - Navigation
1136to1140
Aktuelles Verzeichnis
Verzeichnis Index
Übersicht Verzeichnisse
Vorheriger Thread
Rückwärts Blättern
Nächster Thread
Vorwärts blättern
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Inhaltsverzeichnis

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

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

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige