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 no proteje hoja

publicado

Con la siguiente macro oculto todas las celdas en blanco y al final debería de volver a bloquear pero no lo hace , cual puede ser el error

Gracias

Sub Desbloquear()

Sheets("Peticion_Ensayos_TALLER").Select 'Selecciona la Hoja1

ActiveSheet.Unprotect 'Desprotege la hoja activa. Sin contraseña

End Sub

Public Sub OcultarLineasVaciasPeticionEnsayos_TALLER()

Desbloquear

Dim rng As Range

Dim intLastCol As Integer

Dim intLastRow As Integer

Dim blnEmptyRow As Boolean

Dim i As Integer

Dim j As Integer

Set rng = Selection.SpecialCells(xlCellTypeLastCell)

intLastCol = rng.Column

intLastRow = rng.Row

For i = 1 To intLastRow

blnEmptyRow = True

For j = 1 To intLastCol

If Cells(i, j).Value <> "" Then

blnEmptyRow = False

Exit For

End If

Next

If blnEmptyRow Then

Cells(i, j).EntireRow.Hidden = True

End If

Next

End Sub

Sub Protejer()

Sheets("Peticion_Ensayos_TALLER").Select 'Selecciona la Hoja1

ActiveSheet.Protect 'Protege la hoja activa.

End Sub

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.