PPT中如何批量修改字体颜色和大小

 我来答
龚水彤占坚
2020-04-14 · TA获得超过2.9万个赞
知道小有建树答主
回答量:1.1万
采纳率:32%
帮助的人:733万
展开全部
即可实现,看图操作吧!
sub
oed01()
'批量修改字体格式、大小和颜色
dim
oshape
as
shape
dim
oslide
as
slide
dim
otxtrange
as
textrange
on
error
resume
next
for
each
oslide
in
activepresentation.slides
for
each
oshape
in
oslide.shapes
set
otxtrange
=
oshape.textframe.textrange
if
not
isnull(otxtrange)
then
with
otxtrange.font
.name
=
"楷体_gb2312"
'改成你需要的字体
.size
=
20
'改成你需要的文字大小
.color.rgb
=
rgb(red:=255,
green:=0,
blue:=0)
'改成你想要的文字颜色
end
with
end
if
next
next
end
sub
//更改具备相同文字区域的ppt批量修改(跟据上面的例字整理所得)
sub
aa()
'
'
宏由
wsqxushui
创建,日期
2011-3-16。
'
dim
oshape
as
shape
dim
oslide
as
slide
dim
otxtrange
as
textrange
on
error
resume
next
for
each
oslide
in
activepresentation.slides
'遍历所有的幻灯片
set
oshape
=
oslide.shapes("text
box
4")
'每个幻灯片中文字区域
set
otxtrange
=
oshape.textframe.textrange
'每个区域中文字
if
not
isnull(otxtrange)
then
with
otxtrange.font
.name
=
"宋体"
'改成你需要的字体
.size
=
14
'改成你需要的文字大小
.color.rgb
=
black
'改成你想要的文字颜色
end
with
end
if
next
end
sub
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
博思aippt
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT... 点击进入详情页
本回答由博思aippt提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式