Name

control.Locked [= setting]

Synopsis

True prevents the user from setting the control’s value; False allows changes. Default is False. Locking a control is different from setting its Enabled property to False in that the control is not grayed and can still receive focus.

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.