Hola si has usado el ejemplo que te expuse anteriormente no deberias poner inputbox para comparar, sino el inputboxDk de la funcion osea el que termina en DK
OSEA
pones en el modulo de excel el codigo que te puse anteriormente y en el useform
en el boton para comparar:
Cita: Private Sub CommandButton6_Click()
If InputBoxDK("Digite Password", "CLAVE DE CONFIGURACION") <> "780530" Then
MsgBox "PASWORD INCORRECTO"
'AQUI EL CODIGO SI EL PASWORD ES INCORRECTO'
Exit Sub
Else
MsgBox "PASWORD CORRECTO"
'AQUI EL CODIGO QUE SIGUE SI ES CORRECTO EL PASWORD'
End If
End Sub