كدتون مشكل داشت عزيز برادر
کد:
If Me.TextBox3.Value <> Me.TextBox4.Value Then
MsgBox "ÑãÒåÇí ÌÏíÏ ÔãÇ íßÓÇä äíÓÊ", vbCritical + vbMsgBoxRight, "ÎØÇ"
Exit Sub
Else
For Each UserName In Sheet5.Range("G2:G100")
If UserName = user Then
UserName.Offset(, 1) = Me.TextBox3.Value
MsgBox "ÑãÒ Ú龄 ÈÇ ãæÝÞíÊ ÊÛííÑ íÏÇ ˜ÑÏ", vbInformation + vbMsgBoxRight, "ãæÝÞ"
Exit Sub
End If
Next UserName
End If

Leave a comment: