开发者

How to assign paragraph / character styles automatically in word 2010

开发者 https://www.devze.com 2023-04-02 05:59 出处:网络
Hi I\'ve a 200 pg fully formatted word document. The person who had worked on it earlier had not applied any style to the whole document and he开发者_运维知识库 has done it manually. Though the format

Hi I've a 200 pg fully formatted word document. The person who had worked on it earlier had not applied any style to the whole document and he开发者_运维知识库 has done it manually. Though the formatting was done very neatly it has become my job to assign character/paragraph styles to each and every paragraph. Does any one know of a script which assigns character/paragraph styles automatically to the existing word 2010 document?


You'd better use Word VBA to deal with your issue.

What you should do is:

  1. Find the style you want to replace with a style (see MSDN or some tips)
  2. Apply style to the found selection (see this SO thread: How do I apply a style to multiple selections in Word using VBA?)

If you want to check the right style, you can record a macro and adapt it.


You can use the Find and Replace dialog to find text based on its format (e.g. Bold, Size 14) and replace it with a Style (e.g. Heading 2).

This article sums it up pretty well.... http://www.howtogeek.com/howto/microsoft-office/search-and-replace-specific-formatting-fonts-stylesetc-in-microsoft-word/

How to assign paragraph / character styles automatically in word 2010

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号