|

楼主 |
发表于 2024-8-9 08:39
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Sub ll()
- Dim Sld As Slide
- Dim Shp As Shape
- Set Sld = ActivePresentation.Slides(1)
- Set Shp = Sld.Shapes.AddLabel(Orientation:=msoTextOrientationVerticalFarEast, _
- Left:=100, Top:=100, Width:=60, Height:=150)
- With Shp
- .TextFrame.TextRange.Text = "Test Label"
- Debug.Print .Type, .Type = msoTextBox
- End With
- Stop
- Set Shp = Sld.Shapes.AddTextbox(Orientation:=msoTextOrientationHorizontal, _
- Left:=220, Top:=100, Width:=260, Height:=50)
- With Shp
- .TextFrame.TextRange.Text = "Test Label"
- Debug.Print .Type, .Type = msoTextBox
- End With
- Stop
- End Sub
复制代码
AddTextbox与AddLabel感觉没有什么区别 。
结果都是 17 True
|
|