LockedText Property

Applies To

Button Object, Buttons Collection, CheckBox Object, DialogFrame Object, DrawingObjects Collection, GroupBox Object, GroupBoxes Collection, Label Object, Labels Collection, OptionButton Object, OptionButtons Collection, TextBox Object, TextBoxes Collection.

Description

True if the text in the object will be locked to prevent changes when the document is protected. Read-write.

See Also

Protect Method, ProtectContents Property.

Example

This example locks the text on button one on Sheet1.


Worksheets("Sheet1").Buttons(1).LockedText = True