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 y desmarcar Check de formato condicional al hacer dobleclick

publicado

Buenas a todos de nuevo.

Necesito ayuda con esto. Subo un archivo donde necesitaría que al hacer doble click  sobre las celdas donde hay un formato condicional  que al poner 1 se marca un check, pues que si hay un 1 se ponga 0 y al volver a hacer doble click borre el 1.

Así no tengo que estar escribiendo constantemente o borrando.

No encuentro como hacerlo. ¿podéis ayudarme?

Gracias de antemano.

 

 

Nuevo Checklist.xlsm

Featured Replies

publicado
  • Autor

Hola, he añadido este código. No creo que sea el más adecuado aunque me funciona. Lo digo porque solo necesito que me afecte a las columnas J, O y T pero he cogido el rango entero. Si podéis ayudarme a dejar el código más ortodoxo lo agradezco.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
On Error Resume Next

If Intersect(Target, Range("J:T")) = 1 Then
Target.Value = ""
Exit Sub
End If
If Not Intersect(Target, Range("J:T")) Is Nothing Then
If Target.Value = "" Then Target.Value = 1
End If

Cancel = True

End Sub

 

Nuevo Checklist.xlsm

publicado

Aplicando la respuesta de Abraham, podría quedar así:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("J:J,O:O,T:T")) Is Nothing Then
   Cancel = True
   If Target = "" Then
      Target = 1
   Else
      Target = ""
   End If
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.