ich habe da ein Problem.
Wie kann ich eine Spalte mittels VBA z.B.
Spalte A soll zentriert sein
Spalte B soll linksbündig sein
ändern.
Gruß Egon
Sub Makro1()
' Makro1 Makro
' Makro am 14.05.2004 aufgezeichnet
Columns("C:C").Select
With Selection
.HorizontalAlignment = xlLeft
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.MergeCells = False
End With
Columns("D:D").Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Application.CommandBars("Stop Recording").Visible = False
End Sub
Sub Ausrichtung()
Columns("A:A").HorizontalAlignment = xlCenter 'zentriert
Columns("B:B").HorizontalAlignment = xlLeft 'links
End Sub