#1
|
|||
|
|||
How to set style automatically for specific texts
Dear all!
Can you help me to set styles automatically for specific texts? Let say in a document, some text are 'asdf ghjk *' I want these texts (texts with *) to set Heading 1 style. Is it possible? Other text can be 'qwer tyuio **' I want these texts (texts with **) to set Heading 2 style. Is there any way to do this? Thank you for reading and trying to help me! |
#2
|
|||
|
|||
Ahh, a half solution below:
Click on 'Replace' button. On the 'Find and Replace' pane on 'Replace' tab, write * to 'Find what' and write nothing to 'Replace what' and click on 'More' button then 'Format' and select 'Style' and select the 'Heading 1' style. I have only one problem with this: the source string is Normal style with Courier font. My Heading 1 style has Cambria font. But when replacing the style, everything works well except the font. So the string's font does not change, it has still Courier font. The font size, the color and everything changes to Heading 1, except the font. If I click manually on the style Heading 1, then the font is changing right to Cambria. But with 'Replace', it does not change Does anybody know why? Thank you! |
#3
|
|||
|
|||
So I got it...
My string has Normal style but different font (Normal style has Times New Roman font). So the string actually has not only a paragraph style but a charatcer one too. So I need select all the text (Ctr+A) then change the whole document's style to Normal. It changes the font of the whole document to the default Normal style's font. And after that, the 'Replace' method works well and changes the replaced string's font to Cambria. Nice day! |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clickable Links Converted to hyperlink texts automatically when I open a word doc | Kingsly | Word | 2 | 09-13-2012 10:42 AM |
Macro to replace one specific heading style with another | ubns | Word VBA | 44 | 09-04-2012 08:17 PM |
Suggestion: Scroll bar of the Style should automatically to show the name of the styl | Jamal NUMAN | Word | 3 | 06-28-2011 12:34 AM |
update style of all strings available between two specific strings | vikrantkale | Word | 1 | 03-28-2011 06:13 PM |
Changing Endnote Style Automatically | ziggle | Word | 0 | 12-30-2008 11:30 AM |