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.

marcar x en distintas columnas

publicado

Buen dia, Normalmente uso este codigo en un archivo que utilizo en el trabajo donde marco  con una "x " celdas a lo largo de toda la columna B:B, hoy intente agregar otras y creo que no lo estoy  haciendo correctamente porque no me aparecen, que necesito hacer para incluirlas correctanebte?

adjunto el codigo

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Intersect(Target, Columns("B:B"), ("D:D"), ("F:F"), ("H:H"), ("J:J"), ("M:M"), ("O:O"), ("Q:Q"), ("S:S"), ("U:U")) Is Nothing Then Exit Sub
     If Target.Row < 5 Then Exit Sub
    If ActiveCell = "x" Then
        ActiveCell = ""
     Else
        ActiveCell = "x"
    End If
    
       End Sub
    


gracias

Featured Replies

publicado
  • Autor

@Toldeman Gracias por tu respuesta pero me da error de sintaxis, que puede estar faltando?

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
   Intersect(Target, Range("B:B,D:D,F:F,H:H,J:J,L:L")) Is Nothing Then Exit Sub
     If Target.Row < 5 Then Exit Sub
    If ActiveCell = "x" Then
        ActiveCell = ""
     Else
        ActiveCell = "x"
    End If
    
       End Sub


 

publicado

Saludos,

con el debido permiso,...

Te falta el "If" supongo...

If Intersect(Target,.....

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.