n3tw0rkadm1n1strat0r
IS-IT--Management
Does anyone know how to sort rows alphabetically by whats in column A for excel?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 2/26/2007 by Spectacor-Complex
'
'
Application.WindowState = xlMinimized
Application.WindowState = xlNormal
Application.WindowState = xlMinimized
Application.WindowState = xlNormal
Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End Sub
objExcel.Range("A:AH").Select
objExcel.Selection.Specialcells(4).Key1' 4 = Range("A2")
objExcel.Selection.Specialcells(4).Order' 4 = xlAscending
objExcel.Selection.Specialcells(4).Header' 4 = xlGuess
objExcel.Selection.Specialcells(4).OrderCustom' 4 = 1
objExcel.Selection.Specialcells(4).MatchCase' 4 = False
objExcel.Selection.Specialcells(4).Orientation' 4 = xlTopToBottom
objExcel.Selection.Specialcells(4).DataOption1' 4 = xlSortNormal