Makro sortiert nicht korrekt!
02.01.2005 19:51:43
Fritz
ich habe nachfolgendes Makro aufgezeichnet, das ab Zeile 5 sortieren soll. Funktionierte anfangs auch. Plötzlich wird die erst ab Zeile 6 sortiert.
Was ist die Ursache?
Vielen Dank für eure Hilfe!
Gruß
Fritz
Sub Daten_sortieren()
' Daten_sortieren Makro
' Makro am 23.12.2004 von Fritz1 aufgezeichnet
Range("A5:i92").Select
Selection.Sort Key1:=Range("G5"), Order1:=xlAscending, Key2:=Range("H5") _
, Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, DataOption2 _
:=xlSortNormal
Application.CommandBars("Stop Recording").Visible = False
Range("A1").Select
End Sub