When to use TextFrame or TextFrame2 in VBA

后端 未结 2 2025
灰色年华
灰色年华 2021-02-07 09:39

Example, in Powerpoint:

The TextFrame object:

Represents the text frame in a Shape object. Contains the text in the text frame and the propertie

2条回答
  •  我寻月下人不归
    2021-02-07 10:08

    According to Jon Peltier here: http://peltiertech.com/programming-excel-2007-2010-autoshapes-with-vba/

    "The TextFrame2 member was added in Excel 2007 and gives better control over the formatting of the text. Because it is not backward compatible, I would recommend using the TextFrame object"

    I'm guessing a similar situation applies in PPT.

提交回复
热议问题