Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2013, 02:22 AM
ragesz ragesz is offline How to set style automatically for specific texts Windows 7 64bit How to set style automatically for specific texts Office 2007
Novice
How to set style automatically for specific texts
 
Join Date: Oct 2012
Posts: 14
ragesz is on a distinguished road
Default 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!
Reply With Quote
  #2  
Old 07-25-2013, 06:58 AM
ragesz ragesz is offline How to set style automatically for specific texts Windows 7 64bit How to set style automatically for specific texts Office 2007
Novice
How to set style automatically for specific texts
 
Join Date: Oct 2012
Posts: 14
ragesz is on a distinguished road
Default

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!
Reply With Quote
  #3  
Old 07-25-2013, 07:08 AM
ragesz ragesz is offline How to set style automatically for specific texts Windows 7 64bit How to set style automatically for specific texts Office 2007
Novice
How to set style automatically for specific texts
 
Join Date: Oct 2012
Posts: 14
ragesz is on a distinguished road
Default

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!
Reply With Quote
Reply

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
How to set style automatically for specific texts Macro to replace one specific heading style with another ubns Word VBA 44 09-04-2012 08:17 PM
How to set style automatically for specific texts 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
How to set style automatically for specific texts 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft