Actually.., there were 2 more routines. This one lets you retrieve
protection settings for a specific sheet...
Function Get_WksProtectionSettings$(Optional Wkb As Workbook, Optional
Wks As Worksheet)
' This returns sheet-specific protection settings
' stored in the sheet's local scope defined name "uiProtect".
Dim vSettings
If Wkb Is Nothing Then Set Wkb = ActiveWorkbook
If Wks Is Nothing Then Set Wks = ActiveSheet
vSettings = Empty
On Error Resume Next
vSettings = Wks.Names("uiProtect").RefersTo
On Error GoTo 0
If Not (vSettings = Empty) Then _
vSettings = Application.Evaluate("'" & Wks.name & "'!uiProtect")
Get_WksProtectionSettings = vSettings
End Function
--
Garry
Free usenet access at
http://www.eternal-september.org
Classic
VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion