Saltar al contenido
View in the app

A better way to browse. Learn more.

Ayuda Excel

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Macro para ordenar una tabla según niveles

publicado

Macro para ordenar una tabla por grupo y subgrupo

Buenos días a todos, este es el primer tema que publico. la cuestión es que tengo una tabla con los nombres de los compañeros que va desde [b7:O110]. he creado una macro para ordenarlas por turno de trabajo, el cual esta en la columna [D], pero me gustaría que a la vez me lo ordenara por Categoría [columna C] y por grupo [Columna E].

Me he atascado y no puedo seguir. Os dejo la macro que he hecho para que me sugiráis cambios o añadidos.

Sub ORDENAR()

'

' ORDENAR por Turno

uf = Sheets("Empleados").Range("B" & Cells.Rows.Count).End(xlUp).Row

Range("B5:I" & uf).Select

ActiveWorkbook.Worksheets("Empleados").Sort.SortFields.Clear

ActiveWorkbook.Worksheets("Empleados").Sort.SortFields.Add Key:=Range("D5"), _

SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal

With ActiveWorkbook.Worksheets("Empleados").Sort

.SetRange Range("B5:O110")

.Header = xlNo

.MatchCase = False

.Orientation = xlTopToBottom

.SortMethod = xlPinYin

.Apply

End With

End Sub

Gracias de antemano.

Libro1.rar

Featured Replies

publicado
  • Autor

Lo siento, el archivo no subió bien, ya esta solucionado

publicado
  • Autor

Ya esta solucionado.

Tema Cerrado

Archivado

Este tema está ahora archivado y está cerrado a más respuestas.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.