Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Dulceata_ta36 Profile
Femeie
21 ani
Galati
cauta Barbat
28 - 53 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [EXCEL] Password Protect a Sheet with Conditions (toggle unprot) [VBA] Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 7 ani
Postari: 806
Source for Worksheet.Protect Method options:

expression .Protect ( Password , DrawingObjects , Contents , Scenarios , UserInterfaceOnly , AllowFormattingCells , AllowFormattingColumns , AllowFormattingRows , AllowInsertingColumns , AllowInsertingRows , AllowInsertingHyperlinks , AllowDeletingColumns , AllowDeletingRows , AllowSorting , AllowFiltering , AllowUsingPivotTables )

My example:



Sub Protect_with_Conditions()

If ActiveSheet.ProtectContents = True Then
        ActiveSheet.Unprotect
   
    Else
        ActiveSheet.EnableOutlining = True
       
        ActiveSheet.PROTECT _
        UserInterfaceOnly:=True, _
        AllowFormattingCells:=True, _
        AllowFiltering:=True

    End If
End Sub


pus acum 6 ani
   
Pagini: 1  

Mergi la