Text1 = x vecchia pwd
Text2 = x nuova pwd
Text3 = x conferma nuova pwd
Ammesso che la vecchia pwd sia "PASSWORD" (cm da tuo esempio), devi fare così:
Al di fuori di ogni sub devi dichiarare:codice:old_pwd = "PASSWORD" If text1.text = old_pwd then if text2.text = text3.text then 'nuova pwd confermata new_pwd = text2.text end if end if
Nella tua routine devi scrivere:codice:dim old_pwd as String dim new_pwd as String
Cmq concordo totalmente con ciò scritto da Oregon..codice:Password = UCase(InputBox("Password:")) If Password = new_pwd Then mnuOggetti.Enabled = True Else Password = "" MsgBox "Password Sbagliata" End If

Rispondi quotando