注释文本中的分词

时间:2017-12-07 20:18:08

标签: vba ms-word word-vba

我正在尝试编写一个将分割注释的宏。我的主管想要对评论进行优先排序,例如:

低:评论1

中:评论2

高:评论3

输出应显示在Excel中,标题如下。 我能够编写一个宏来将Word中的注释导出到Excel文件,但是我很难添加这段代码片段来分割注释文本。

Comment ID  |Page|  Section/Paragraph Name  |Comment Scope  |Comment text   |Priority   |Reviewer   |Comment Date|
1   |1| 1.1heading1|    example| heading|   Comment 1   |Low    |BlueDolphin    |1/1/1|
2|  2|  1.2heading  |example2   |Comment 2  |Medium|    BlueDolphin|    1/1/1|
3|  3   |1.3heading|    3example3|Comment 3 |High   |BlueDolphin    |1/1/1|

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

这看起来非常简单。只需打开宏记录器,选择感兴趣的细胞,单击数据>文本到列,并按照提示。完成后关闭宏记录器。就是这样。