Que tal
El codigo de abajo lo hice para sortear informacion de la colmna A, pero me
sale un error "Object does not support this property or method".
Lo que hace la macro es buscar dos celdas en en particular, la macro lo hace
pero cuando tiene que sortear todo el rango es cuando me sale ese error.
Me podrian ayudar..
Private Sub()
INICIO = ActiveCell.Address
FIN = ActiveCell.Address
Range(INICIO, FIN).Select
ActiveWorkbook.Worksheets("Basededatos").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Basededatos").Sort.SortFields.Add Key:=Range( _
INICIO, FIN), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("Basededatos").Sort
.SetRange Range(INICIO, FIN)
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Gracias
Leer las respuestas