wps去除页脚横线
发布时间:2026-09-18 14:03:06

在处理文档时,页脚横线有时候会成为我们想要去除的元素。今天,我们就来聊聊如何轻松地在WPS中去除页脚横线,让你的文档看起来更加整洁专业。
一、打开WPS文档,定位到页眉页脚
1.点击“页面布局”选项卡。
2.在“页面设置”组中,选择“页眉和页脚”命令。
二、编辑页脚,去除横线
1.在页脚编辑区域,你可以看到页脚横线。
2.点击页脚横线,选中它。
3.按下“Delete”键或者右键点击横线,选择“删除”。
三、调整页脚布局,确保横线被彻底移除
1.如果删除横线后,发现页脚内容布局发生了变化,可以调整页脚内容的布局。
2.点击“布局”选项卡,根据需要对页脚内容进行位置调整。
四、保存文档,确保更改生效
1.点击“文件”选项卡,选择“保存”或“另存为”。
2.选择保存路径,输入文件名,点击“保存”。
五、检查其他页脚设置
1.如果文档中有多页有页脚,可以检查其他页脚是否也存在横线。
2.如果存在,重复上述步骤进行去除。
六、使用样式快速去除页脚横线
1.如果文档中页脚横线较多,可以使用样式快速去除。
2.点击“开始”选项卡,找到“样式”组。
3.在下拉列表中找到页脚样式,右键点击,选择“修改”。
4.在弹出的“修改样式”对话框中,找到页脚横线,点击“删除”。
七、利用WPS宏功能批量去除页脚横线
1.如果需要批量处理多个文档的页脚横线,可以使用WPS宏功能。
2.点击“开发工具”选项卡,选择“宏”。
3.在弹出的“宏”对话框中,选择“新建”。
4.在“将宏保存到”下拉列表中选择当前文档。
5.输入宏名,点击“创建”。
6.在VBA编辑器中输入以下代码:
SubRemoveFooterLine()DimoFooterAsHeaderFooter
ForEachoFooterInActiveDocument.HeaderFooters
IfoFooter.Name="Footer"Then
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Bold=False
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Bold=True
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Underline=wdUnderlineNone
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Underline=wdUnderlineSingle
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Underline=wdUnderlineNone
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Strikethrough=wdStrikethroughNone
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Strikethrough=wdStrikethroughSingle
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Strikethrough=wdStrikethroughNone
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter.Range.Find.ExecuteFindText:="*",ReplaceWith:="",Forward:=True,Wrap:=wdFindContinue
oFooter.Range.Find.ClearFormatting
oFooter.Range.Find.Font.Color.RGB=RGB(0,0,0)
oFooter
下一篇:报名查询系统
