current position:Home>In PPT form type judgment

In PPT form type judgment

2022-08-06 09:32:18CSDN Q&A

The phenomenon and background of the problem:
I plan to use python to modify the batch PPT content. When modifying the table content, the type judgment of the table is wrong and cannot continue.

Code:
for shape in shapes:
if shape.shape_type == MSO_SHAPE_TYPE.TABLE:

Running results and error content:
NameError: name 'MSO_SHAPE_TYPE' is not defined

My solution ideas and tried methods:
There is no way at present

The result I want to achieve:
How to recognize that the shape is a table.

copyright notice
author[CSDN Q&A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/218/202207301816025284.html

Random recommended