Docsity

material de apollo bueno, Diapositivas de Ingeniería

Vista previa parcial del texto

¡Descarga material de apollo bueno y más Diapositivas en PDF de Ingeniería solo en Docsity!

Código de bloqueo y desbloqueo

Application.ScreenUpdating = False Sheets("menu").Select ActiveSheet.Unprotect Password:="1234" Sheets("menu").Select ActiveSheet.Protect Password:="1234" Application.ScreenUpdating = False

VERIFICAR SI UNA O MAS CELDA TIENEN CONTENIDO.

existe = False For Each c In Range("b2:b4") If c.Value = "" Then celdas = celdas & " " & c.Address(False, False) existe = True End If Next If existe Then MsgBox "RELLENAR TODOS LOS CAMPOS", vbCritical Exit Sub End If Application.ScreenUpdating = False Application.ScreenUpdating = False MsgBox "GUARDADO CON EXITO", vbInformation