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 "X"

publicado

Buenas noches,

Tengo una macro que actualmente utilizo para marcar con una "x" o no segun haga click en una celda, actualmente lo hace sobre toda la columna J como se va a ver en el codigo.

Mi pregunta es como deberia declararlo para decirle que actue  solo en un conjunto de determinadas celdas deseadas , Ej: "(J17;J18;J22;j28)  y no sobre toda la columna como hace actualmente

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Intersect(Target, Columns("J:J")) Is Nothing Then Exit Sub
    If Target.Row < 2 Then Exit Sub
    If ActiveCell = "x" Then
        ActiveCell = ""
    Else
        ActiveCell = "x"
    End If
End Sub

Muchas gracias

Featured Replies

publicado

Tan solo modifica Columns por Range() y pones todas las celdas que participen en la selección deseada.

El primer If ya no será necesario puesto a que estas especificando el rango donde si va a ejecutarse la función.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Intersect(Target, Range("J4,J7")) Is Nothing Then Exit Sub
    If ActiveCell = "x" Then
        ActiveCell = ""
    Else
        ActiveCell = "x"
    End If
End Sub

 

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.