不自动调整
自动溢出
根据文本框大小自动调节
用VBA代码分别怎么写?
谢谢。
怎么用VBA的知识把ppt中所有页的文本框的属性都改为不自动调整
答案:2 悬赏:10 手机版
解决时间 2021-02-20 11:16
- 提问者网友:兔牙战士
- 2021-02-20 05:40
最佳答案
- 五星知识达人网友:千夜
- 2021-02-20 07:19
试验一下:
Sub Test()
On Error Resume Next
Dim i As Single
For i = 1 To ActivePresentation.Slides.Count
For j = 1 To ActivePresentation.Slides(i).Shapes.Count
With ActivePresentation.Slides(i).Shapes(j).TextFrame
.WordWrap = msoFalse
.AutoSize = ppAutoSizeNone
End With
Next
Next
End Sub
Sub Test()
On Error Resume Next
Dim i As Single
For i = 1 To ActivePresentation.Slides.Count
For j = 1 To ActivePresentation.Slides(i).Shapes.Count
With ActivePresentation.Slides(i).Shapes(j).TextFrame
.WordWrap = msoFalse
.AutoSize = ppAutoSizeNone
End With
Next
Next
End Sub
全部回答
- 1楼网友:由着我着迷
- 2021-02-20 07:54
sub change_whitetext_toblack()
on error resume next
dim i, j as single
for i = 2 to activepresentation.slides.count
for j = 1 to activepresentation.slides(i).shapes.count
with activepresentation.slides(i).shapes(j)
if .fill.backcolor = vbwhite and .textframe.textrange.font.color = vbwhite then
.textframe.textrange.font.color = vbblack
end if
end with
next
next
end sub
插入模块,复制代码到其中。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯