You are on page 1of 3

DESCARGAR PROGRAMACION PARA VALIDAR CELDAS VACIAS

existe = False

For Each c In Range("B6")

If c.Value = "" Then

celdas = celdas & " " & c.Address(False, False)

existe = True

End If

Next

If existe Then

MsgBox "INGRESA CODIGO A CONSULTAR", vbCritical

Exit Sub

End If

existe = False

For Each c In Range("D1:D8")

If c.Value = "" Then

celdas = celdas & " " & c.Address(False, False)

existe = True

End If

Next

If existe Then

MsgBox "COMPLETAR LA INFORMACIÓN", vbCritical

Exit Sub

End If

Application.ScreenUpdating = False

Application.ScreenUpdating = True

MsgBox "GUARDADO CON EXITO", vbInformation


existe = False

For Each c In Range("B6:F6")

If c.Value = "" Then

celdas = celdas & " " & c.Address(False, False)

existe = True

End If

Next

If existe Then

MsgBox "COMPLETE INFORMACIÓN DE INGRESO", vbCritical

Exit Sub

End If

MsgBox "INGESO ÉXITOSO", vbInformation


existe = False

For Each c In Range("B6")

If c.Value = "" Then

celdas = celdas & " " & c.Address(False, False)

existe = True

End If

Next

If existe Then

MsgBox "INGRESA CÓDIGO A CONSULTAR", vbCritical

Exit Sub

End If

You might also like