اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

تشفير كلمة سر


الردود الموصى بها

السلام عليكم

اريد ان تكون كلمة السر في هذا الكود مشفرة من DVB الي ***

نامل المساعدة

Sub Button1_Click()
    Dim strPass As String
    Dim iCount As Integer
    strPass = "Secret"

    For lCount = 1 To 3
        strPass = InputBox(Prompt:="الرجاء إدخال كلمة المرور", Title:="كلمة المرور")
        If strPass = vbNullString Then
            Exit Sub
        ElseIf strPass <> "DVB" Then
            MsgBox "كلمة المرور غير صحيحة", vbCritical, "DVB Software"
        Else
            Worksheets("ورقة1").Visible = xlSheetVisible
            Exit For
        End If
    Next lCount

    If lCount = 4 Then Exit Sub

End Sub

تم تعديل بواسطه DVB Software
رابط هذا التعليق
شارك

  • 2 years later...

السلام عليكم

جزاكم الله خيرا يا شباب على التعاون مع الجميع

أخي الكريم / Elsayeh

هل يقتصر الكود على كلمة السر 123 فقط لأنه يعطي رسالة لأي كلمة غير هذة بأنها غير صالحة ؟

رابط هذا التعليق
شارك

الاخوة الافاضل مقالوش رأيهم في الفكرة يعني

شكلها معجبتكوش

بالعكس عمل ممتاز بارك الله فيك

وللعلم فالكود يمكن استخدامه حتى في الاكسس

http://www.officena.net/ib/index.php?showtopic=37919

رابط هذا التعليق
شارك

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information