Excel VBA怎么去掉WORD中的全部自动编号的格式,但数字还保留着

excelwordVBA

1个回答

写回答

xuzeeeeyu

2026-01-06 23:45

+ 关注

备份文件后运行下面这个宏(用法:选中内容就处理选中部分,不选就全处理):vbsSub 自动编号转文本() 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 IfEnd Sub

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号