aun no ordeno automatico

jorgeg_14

New Member
Joined
Apr 7, 2002
Messages
15
juan pablo, aun sigo sin poder ordenar automactiamente como ya te lo habia explicado, me pues porfavor decir un poco mas detalladamente que es lo que debo hacer para que esto suceda?

Gracias
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Rng As Range

Set Rng = Range("A1:A10")

If Not Intersect(Target, Rng) Is Nothing Then _
Rng.Sort Key1:=Rng.Range("A1"), Order1:=xlAscending, Header:=xlYes
End Sub


Este macro ordena automáticamente el Rango A1:A10 en orden ASCENDENTE (xlAscending) y asume que hay un título.
 
Upvote 0
Juan Pablo, muchas gracias por tu ayuda, de verdad me ha servido de mucho, solo te quisiera preguntar por ultimo, cual es el formato que tengo que poner si quiero ordenar algo

por ejemplo


Nombre Edad Sueldo
Jorge 25 $458
Pedro 65 $125
Juan 12 $478
Pablo 78 $100

si tengo esa tabla y quiero ordenar la tabla ya sea ascendente o descendente pero basandome como primer criterio en la columna C y despues en la columna B

como cabiaria esto el formato que me diste

Gracias de antemano
This message was edited by jorgeg_14 on 2002-04-13 00:04
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,167
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top