宏从列表中删除项目符号

宏从列表中删除项目符号

本文介绍了Word 2007:宏从列表中删除项目符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试删除所有子弹word 2007文档。这是一个非常大的文档,所以我尝试使用宏来解决这个问题。

I'm trying to remove all the bullets in a word 2007 document. It is a very big document so i tried to solve this using a macro.

我没有办公套件或VBA脚本的经验所以我有点迷失方向..

I have no experience in office suite or in VBA scripting so I'm a bit disoriented..

我尝试过在互联网上找到的不同解决方案,我发现最好的是在列表上应用新模板的脚本,它是这样的:

I have tried different solutions I found on internet, the best i found was a script that applied a new template on lists, it was something like this:

Set r = oPara.Range
       If r.ListFormat.ListType = wdListBullet Then
           r.ListFormat.ApplyListTemplate _
 ListTemplate:=ListGalleries(wdNumberGallery) _
 .ListTemplates(1)

但我看到我可以选择的范围是" ListTemplates"从1到7,不包括"无",我需要。

But i saw that the range from wich i can choose in "ListTemplates" goes from 1 to 7, excluding "none", wich i need.

我也尝试过使用" ApplyBulletDefault"方法,它有时工作。我试图了解如何获取文档默认项目符号样式并更改它但没有运气..

I've also tried using "ApplyBulletDefault" method and it works sometimes. I tried to understand how to obtain the document default bullet style and to change it but with no luck..

我希望有人有解决方案,甚至不使用宏..

I hope someone has a solution, even not using a macro..

谢谢:)

推荐答案


这篇关于Word 2007:宏从列表中删除项目符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 08:12