Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 801 Bytes

Excel.TextFrame2.DeleteText.md

File metadata and controls

41 lines (23 loc) · 801 Bytes
title api_name ms.assetid ms.date ms.localizationpriority
TextFrame2.DeleteText method (Excel)
Excel.TextFrame2.DeleteText
e96a305c-085a-d807-1336-9dcc22760a7e
05/17/2019
medium

TextFrame2.DeleteText method (Excel)

Deletes the text from a text frame and all the associated text properties.

Syntax

expression.DeleteText

expression A variable that represents a TextFrame2 object.

Remarks

The associated text properties include Font attributes such as bold, underline, and so on.

Example

This example deletes the text in the text frame if the text frame contains text.

With ActiveSheet.Shapes(1).TextFrame2 
 If .HasText Then 
 .DeleteText ()

[!includeSupport and feedback]