Overtype Property

Microsoft Word Visual Basic

Overtype Property

       

True if Overtype mode is active. In Overtype mode, the characters you type replace existing characters one by one. When Overtype isn't active, the characters you type move existing text to the right. Read/write Boolean.

expression.Overtype

expression   Required. An expression that returns an Options object.

Example

If Overtype mode is active, this example displays a message box asking whether Overtype should be deactivated. If the user clicks the Yes button, Overtype mode is made inactive.

If Options.Overtype = True Then
    aButton = MsgBox("Overtype is on. Turn off?", 4)
    If aButton = vbYes Then Options.Overtype = False
End If