|
楼主 |
发表于 2024-8-25 09:57
|
显示全部楼层
- Function msoShapeArr(Shp As Shape)
- Dim Arr(0 To 138)
- Arr(0) = Array(msoShape16pointStar, "msoShape16pointStar", "十六角星")
- Arr(1) = Array(msoShape24pointStar, "msoShape24pointStar", "二十四角星")
- Arr(2) = Array(msoShape32pointStar, "msoShape32pointStar", "三十二角星")
- Arr(3) = Array(msoShape4pointStar, "msoShape4pointStar", "四角星")
- Arr(4) = Array(msoShape5pointStar, "msoShape5pointStar", "五角星")
- Arr(5) = Array(msoShape8pointStar, "msoShape8pointStar", "八角星")
- Arr(6) = Array(msoShapeActionButtonBackorPrevious, "msoShapeActionButtonBackorPrevious", "“后退”或“上一个”按钮支持鼠标单击和鼠标移过操作")
- Arr(7) = Array(msoShapeActionButtonBeginning, "msoShapeActionButtonBeginning", "“开始”按钮支持鼠标单击和鼠标移过操作")
- Arr(8) = Array(msoShapeActionButtonCustom, "msoShapeActionButtonCustom", "不带默认图片或文本的按钮支持鼠标单击和鼠标移过操作")
- Arr(9) = Array(msoShapeActionButtonDocument, "msoShapeActionButtonDocument", "“文档”按钮支持鼠标单击和鼠标移过操作")
- Arr(10) = Array(msoShapeActionButtonEnd, "msoShapeActionButtonEnd", "“结束”按钮支持鼠标单击和鼠标移过操作")
- Arr(11) = Array(msoShapeActionButtonForwardorNext, "msoShapeActionButtonForwardorNext", "“前进”或“下一个”按钮支持鼠标单击和鼠标移过操作")
- Arr(12) = Array(msoShapeActionButtonHelp, "msoShapeActionButtonHelp", "帮助按钮支持鼠标单击和鼠标移过操作")
- End Function
- Sub ll()
- Dim Pres As Presentation
-
- Dim Sld As Slide, Slds As Slides
- Set Slds = Application.ActivePresentation.Slides
- Dim Shp As Shape, Shps As Shapes
- Set Sld = Slds(4)
- Set Shps = Sld.Shapes
- For Each Shp In Shps
- If Shp.Type = msoTextBox Then
- msoShapeArr Shp
- With Shp
- Debug.Print .AutoShapeType, .TextFrame.Orientation, .Name, .Left, .Top, .Width, .Top
-
- End With
- End If
- Next Shp
- End Sub
复制代码 |
|