PPT幻灯片的三种批量调整行间距教程
时间:2023-10-11 01:17:37
调整PPT文字段落中的行间距,可以改善PPT的美观效果。那么,PPT的行间距该如何调整呢?如果PPT内只有一两行文字,我们可以通过行间距命令来完成,但如果几百张PPT,都需要调整行间距,那么使用VBA代码会更加明智快捷。
ppt行间距设置方法一:
选中需要调整的文字——单击菜单“格式”——“行距”命令。打开行距对话框,按需设置行间距就OK。
ppt行间距设置方法二:
ppt行间距也可以通过组合键来打开行距对话框,ALT+O+S。
ppt行间距设置方法三:
如果是好几百张PPT就使用下面的代码完成。按下ALT+F11,打开VBE对话框,单击插入——模块,复制下面的代码,按F5键运行就可以完成PPT行间距设置。
Sub ChangeTextFont()Set pages = ActivePresentation.Slides.RangepageCount = pages.Count'第一页和最后一页跳过For i = 2 To pageCount – 1DoEventsActiveWindow.View.GotoSlide Index:=ishapeCount = ActiveWindow.Selection.SlideRange.Shapes.CountFor j = 1 To shapeCountActiveWindow.Selection.SlideRange.Shapes(j).SelectshapeType = ActiveWindow.Selection.SlideRange.Shapes(j).Type'1 – 自选图形'7 – 公式'13 – 图片'14 – 占位符'15 – 艺术字'17 – 文本框'19 – 表格'Debug.Print shapeTypeSelect Case shapeTypeCase 1, 14, 17Set txtRange = ActiveWindow.Selection.ShapeRange.TextFrame.TextRangetxtRange.SelectIf txtRange.Text <> "" Then'设置字体为宋体, 24号With txtRange.Font.Name = "宋体".Size = 24End With'设置段落格式为1.3倍行距With txtRange.ParagraphFormat.SpaceWithin = 1.3End WithEnd IfCase 7, 13, 15Case 19End SelectNext jNext iEnd Sub
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
在XP/Vista中快速卸载删除多系统中的Windows7
![](https://img.aspxhome.com/file/2023/29/a259462_0s.gif)
电脑玩红警2为什么总闪退_win10红警2闪退回桌面解决方法
![](https://img.aspxhome.com/file/2023/4/a313257_0s.jpg)
电脑系统开始菜单中所有程序选项不见了的解决方法
![](https://img.aspxhome.com/file/2023/3/a296392_0s.jpg)
无线鼠标卡顿不流畅的原因及解决方法
![](https://img.aspxhome.com/file/2023/30/a264234_0s.jpg)
如何隐藏Excel功能区界面?
![](https://img.aspxhome.com/file/2023/6/a142416_0s.png)
Win10专业版系统如何修改默认位置C盘?
![](https://img.aspxhome.com/file/2023/26/a223105_0s.jpeg)
Win10局域网打印机共享怎么设置?
![](https://img.aspxhome.com/file/2023/26/a226405_0s.jpg)
Win7电脑鼠标乱跑的解决方法
![](https://img.aspxhome.com/file/2023/3/a292353_0s.jpg)
推荐4个方便的Mac App邮件客户端,可将gmail带到您的桌面
![](https://img.aspxhome.com/file/2023/7/a210147_0s.jpeg)
如何更改WPS文档属性?(图文教程)
![](https://img.aspxhome.com/file/2023/9/a167119_0s.jpg)
MAC用命令行快速创建加密归档文件的技巧
![](https://img.aspxhome.com/file/2023/1/a216401_0s.jpg)
wps制表格入门教程
如何拍摄满意的照片?iPhoneHDR功能设置方法
![](https://img.aspxhome.com/file/2023/6/a324892_0s.jpg)
wps演示怎么批量插入图片
wps office如何做ppt
Win10 10041新增功能详解
![](https://img.aspxhome.com/file/2023/26/a227093_0s.jpg)
Office2010将幻灯片另存为图片的图文方法步骤
![](https://img.aspxhome.com/file/2023/3/15723_0s.jpg)
xbox控制台无法显示好友_xbox控制台无法显示好友解决方法
![](https://img.aspxhome.com/file/2023/2/a289632_0s.png)
win10系统屏幕旋转的操作方法
![](https://img.aspxhome.com/file/2023/4/a310247_0s.png)
如何用PPT设计绘制一个中秋节海报 实例教程
![](https://img.aspxhome.com/file/2023/10/a352543_0s.jpg)