Private Sub CommandButton1_Click()
'.................
End If
With Sheets("原料信息")
.Unprotect
If (权限(ComboBox1, 1) = "一般用户" And Sheet1.Cells(7, "L") = "×") Or (权限(ComboBox1, 1) = "高级用户" And Sheet1.Cells(5, "L") = "×") Then
.Columns("J:DZ").Locked = True
Else
.Columns("J:DZ").Locked = False
End If
.Protect
End With
Unload Me
'............
End Sub