Syntax

expression.LockedText

expression A variable that represents a ControlFormat object.

Example

This example locks text in embedded chart one when the workbook is protected.

Visual Basic for Applications
Worksheets(1).ChartObjects(1).LockedText = True
Lock out text editing on protected workbooks? locked locked text Locked Text Property LockedText LockedText Property Prevent text changes by user?

See also: