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.

Numeracion rangos automatica

publicado

Saludos estimados Master tenha la gentileza de ayudarme con esta macro: tengo tres rangos A5:A20 C5:C20 E5:E20 lo que deseo es que al dar doble clic en el A5:A20 empiece la numeracion en cualquier celda empezando desde el numero 11 hasta llegar al 19 y luego no me permita mas, de la misma manera para el rango C5:C20 con la numeracion desde 21 hasta el 30 y para E5:E20 con la numeracion desde 31 al 40.

finalmente si quiero eliminar algun numero puedo hacer clic derecho y borrar el numero de la celda, y cuando sigo con cl clic este numero se debe restaurar actualizado el conteo.

Gracias

DOBLE CLIC RANGOS NUMERADOR AUTOMATICO.xls

Featured Replies

publicado
  • Autor

adjunto la macro la cual solo funciona para el primer rango A5:A20

Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
    On Error GoTo fin
    Dim celda As Range
    If WorksheetFunction.Max(Range("A5:A20")) = 0 Then

'ingresa el numero con el que desea empezar
    Target = 11
    SendKeys "{ENTER}", True
    Exit Sub
    Else
    num = WorksheetFunction.Max(Range("A5:A20"))
    If Target = "" Then Target = num + 1
    SendKeys "{ENTER}", True
    End If

If WorksheetFunction.Max(Range("C5:C20")) = 0 Then
'ingresa el numero con el que desea empezar
    Target = 21
    SendKeys "{ENTER}", True
    Exit Sub
    Else
    num = WorksheetFunction.Max(Range("A5:A20"))
    If Target = "" Then Target = num + 1
    SendKeys "{ENTER}", True
    End If
fin:
    SendKeys "{ENTER}", True
Exit Sub
    End Sub

 

publicado

¿Y como se supone que tiene que funcionar?, porqué, con filtro o sin filtro, funciona de acuerdo a lo que yo he entendido.

publicado
  • Autor

Gracias Antoni, excelente aporte y ayuda, es gratificante saber que hay Masters que tienen excelencia y carisma para ayudar y trasmitir conocimientos

Tema Cerrado Solucionado

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.