Boa tarde
Neste código mudar o titulo da MsgBox como mostra a Imagem.
Obrigado
Public Function RequiredCharsDialog(RequiredCode As Integer)
Dim NotPresent As String
'Tratamento de erros na password
If RequiredCode <> 0 Then
NotPresent = "Requisitos obrigatórios:" & vbNewLine & vbNewLine
If (RequiredCode And Not 15) = 16 Then: NotPresent = NotPresent & "Password Tem que ter no Mínimo 6 Caracteres" & vbNewLine & vbNewLine
If (RequiredCode And Not 23) = 8 Then: NotPresent = NotPresent & "Password 1 Caracter Especial" & vbNewLine & vbNewLine
If (RequiredCode And Not 27) = 4 Then: NotPresent = NotPresent & "Password 1 Letra Maiuscula" & vbNewLine & vbNewLine
If (RequiredCode And Not 29) = 2 Then: NotPresent = NotPresent & "Password 1 Letra Minuscula" & vbNewLine & vbNewLine
If (RequiredCode And Not 30) = 1 Then: NotPresent = NotPresent & "Password 1 Número" & vbNewLine & vbNewLine
MsgBox NotPresent
End If
End Function
Neste código mudar o titulo da MsgBox como mostra a Imagem.
Obrigado
Public Function RequiredCharsDialog(RequiredCode As Integer)
Dim NotPresent As String
'Tratamento de erros na password
If RequiredCode <> 0 Then
NotPresent = "Requisitos obrigatórios:" & vbNewLine & vbNewLine
If (RequiredCode And Not 15) = 16 Then: NotPresent = NotPresent & "Password Tem que ter no Mínimo 6 Caracteres" & vbNewLine & vbNewLine
If (RequiredCode And Not 23) = 8 Then: NotPresent = NotPresent & "Password 1 Caracter Especial" & vbNewLine & vbNewLine
If (RequiredCode And Not 27) = 4 Then: NotPresent = NotPresent & "Password 1 Letra Maiuscula" & vbNewLine & vbNewLine
If (RequiredCode And Not 29) = 2 Then: NotPresent = NotPresent & "Password 1 Letra Minuscula" & vbNewLine & vbNewLine
If (RequiredCode And Not 30) = 1 Then: NotPresent = NotPresent & "Password 1 Número" & vbNewLine & vbNewLine
MsgBox NotPresent
End If
End Function