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 para bloquear una celda despues de haber sido modificada

publicado

Hola ben día:

Me podria ayuar a localiza el error en la siguinte sintaxis ya que por mas que la intent buscar no la encuentro, lo que esta en negrito es dondeme aparece el error

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Column < 6 Then

Cells(Target.Row, 6).Value = Now

End If

End Sub

-----------------------------------------------------------------------------

Private Sub Workbook_Open()

Worksheets("09-00 AM").Protect "aBc", 1, 1, 1, 1

End Sub

------------------------------------------------------------------------------

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Target.Count > 1 Then ActiveCell.Select

With ActiveCell

If .Locked Then Exit Sub

If Not IsEmpty(ActiveCell) And Not .Locked Then .Locked = True

End With

End Sub

Estaria eternamente agradecida

Featured Replies

publicado

Prueba con esta macro:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("A1:Z1000")) Is Nothing Then
Exit Sub
Else
If Target.Value > "" Then
Target.Select
ActiveSheet.Unprotect
Selection.Locked = True
End If
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlUnlockedCells
End If
End Sub[/CODE]

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.