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.

Confirmar borrado de celda

publicado

...

Hola pueblo:

El título lo dice todo.

En ThisWorkbook:

Private Sub Workbook_Open()
On Error Resume Next
Dim Activa As Worksheet
Set Activa = ActiveSheet
Application.DisplayAlerts = False
Sheets("$$$Work$$$").Delete
Application.DisplayAlerts = True
ActiveSheet.Copy after:=Sheets(1)
ActiveSheet.Name = "$$$Work$$$"
ActiveSheet.Visible = False
Activa.Select
End Sub

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
On Error Resume Next
Application.DisplayAlerts = False
Sheets("$$$Work$$$").Delete
Application.DisplayAlerts = True
End Sub
[/CODE]

[b][u]En la hoja:

[/u][/b]

[CODE]
Private Sub Worksheet_Change(ByVal Rango As Range)
Dim Target As Range
If Rango.Rows.Count = Rows.Count Or _
Rango.Columns.Count = Columns.Count Then Exit Sub
For Each Target In Rango
If Target = "" And _
Not Sheets("$$$Work$$$").Range(Target.Address) = "" Then
If MsgBox("Has borrado el contenido de la celda " & _
Target.Address(False, False) & Chr(10) & _
" ¿Estás eguro ?", vbYesNo + vbQuestion, _
"Confirmar borrado de celda") = vbNo Then
Target = Sheets("$$$Work$$$").Range(Target.Address)
End If
Else
Sheets("$$$Work$$$").Range(Target.Address) = Target
End If
Next
End Sub
[/CODE]

Salu2.

.

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.