Something like this ...
Private _WorkbookLocked As Boolean
Public Property WorkbookLocked() As Boolean
Get
Return _WorkbookLocked
End Get
Set(ByVal value As Boolean)
_WorkbookLocked = value
End Set
End Property
I haven't put in all the code that you had
Easiest way to do this (depending on which version of VS you have) is to type
public property
and then hit the tab key. A code snippet will be generated with fields for you to fill in (Name, Type)