打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
自动编号转文本
  1. Sub 全文编号转文本2()
    '将文档中全部自动编号转成正常文本。
    ActiveDocument.Range.ListFormat.ConvertNumbersToText
    End Sub

    2.
    Sub 全文编号转文本()
        Dim i As List
        For Each i In ActiveDocument.Lists
            i.ConvertNumbersToText
        Next
    End Sub

    3.
    Sub 自动编号转文本,可部分,同时删除制表符()
        If Selection.Type = wdSelectionIP Then
            ActiveDocument.Content.ListFormat.ConvertNumbersToText
            ActiveDocument.Content.Find.Execute FindText:="^t", replacewith:=" ", Replace:=wdReplaceAll
        Else
            Selection.Range.ListFormat.ConvertNumbersToText
            Selection.Find.Execute FindText:="^t", replacewith:=" ", Replace:=wdReplaceAll
        End If
    End Sub

4.

Sub 自动编号转文本()
Dim n
On Error Resume Next
n = MsgBox("默认转换文档中所有项目符号、自动编号、多级列表,如果只转换某区域,请点击“取消”选中该区域后再运行", 1 + 64)
If n = 1 Then
    i = Len(Selection.Range)
    If i = 0 Then
        ActiveDocument.Content.ListFormat.ConvertNumbersToText
        MsgBox "完成"
    Else
        Selection.Range.ListFormat.ConvertNumbersToText
        MsgBox "完成"
    End If
End If
End Sub

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
WPS自动编号转普通文本
Word VBA 学习交流(二)
7个Word实用技巧
Word 宏命令大全
自动编号与文本之间“零距离”接触
WPS如何开启自动编号
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服