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

اريد المعرفه


sief122

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

انا اضع كود لفك الحمايه عن الخلايا المحميه بباسوورد وغلقها بعد عملية الفلترة ولاكن لايعمل لماذا الباسوورد هو 2212

المقصد اني اريد ان اعمل بحث وفلترة واكتب ارقام واعملها سريال كل ده والخلايا مغلقه بالباسوورد

محرك بحث ديناميكي.xlsm

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

First, manually unprotect the worksheet from Review tab and the command Unprotect Worksheet

01.png.a1d2f35e09dcfe9d0767dfe6eccf809e.png

 

From [Developer] tab > click on [Design Mode] > Right-click the activex textbox and select the [Format Control] > from [Protection] tab, uncheck [Locked] option

02.png.9279b0df4db74dbfba64b205db75b577.png

 

 

 

03.png.917065d69c2801f9b7f54eefcd2e6d49.png

 

Exit [Design Mode]

Finally, change the code in worksheet module (you may encounter the error message of protection for once then it will work normally)

Private Sub TextBox1_Change()
    Const sPass As String = "2212"
    With ActiveSheet
        .Protect Password:=sPass, DrawingObjects:=False
        Application.ScreenUpdating = False
            .ListObjects("data").Range.AutoFilter Field:=7, Criteria1:="*" & [F2] & "*", Operator:=xlFilterValues
        Application.ScreenUpdating = True
    End With
End Sub

 

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

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