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.

Seleccionar desde una celda fija a otra de otra columna variable

publicado

Estoy empezando a grabar macros con la grabadora y la vedad que no tengo ni idea de visual basic.

Lo que quiero es leleccionar un clasificacion que esta desordenada, que empieza en E8 (donde esta el titulo y es fija) y debe de seleccionar hasta la ultima celda de la columna O (esta varia) y luego la ordena segun criterios.

Os pongo la esta macro y lo que pasa es si añado una fila mas no la selecciona.

Muchas gracias a todos por vuestra informacion y la ayuda que ofreceis.

Sub Ordenar()

'

' Ordenar Macro

'

'

Range("E8").Select

Range(Selection, Selection.End(xlToRight)).Select

Range(Selection, Selection.End(xlDown)).Select

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

ActiveWorkbook.Worksheets("Clasificacion").Sort.SortFields.Add Key:=Range( _

"O9:O31"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _

xlSortNormal

ActiveWorkbook.Worksheets("Clasificacion").Sort.SortFields.Add Key:=Range( _

"N9:N31"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _

xlSortNormal

With ActiveWorkbook.Worksheets("Clasificacion").Sort

Range(ActiveCell, ActiveCell.End(xlDown)).Select

.Header = xlYes

.MatchCase = False

.Orientation = xlTopToBottom

.SortMethod = xlPinYin

.Apply

End With

Range("G5").Select

End Sub

Featured Replies

No hay posts para mostrar

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.