If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Macro to assign styles?
Is it possible to write a macro in Word 2000 to assign
styles in a document? For example, if a client gives me an unformatted document and I want to assign "Header 1" to every line that's 14pt/all caps/bold italic/12 points after/keep with next, "Header 2" to every line that's 12pt/u&lc/bold/6 points after, etc., is that possible? Any tips to automate formatting super-long documents are helpful. I spend an inordinate amount of time clicking the cursor on a line and assigning a style...even with a keyboard shortcut, it takes a long time. |
#2
|
|||
|
|||
Macro to assign styles?
This may be a reason to upgrade to Word 2003. This can be done with a macro,
but what if the formatting misses one of your criteria such as "keep with next?" Otherwise, you could use replace to replace the formatting with a style. -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://www.mvps.org/word which is awesome! --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "Stacey" wrote in message ... Is it possible to write a macro in Word 2000 to assign styles in a document? For example, if a client gives me an unformatted document and I want to assign "Header 1" to every line that's 14pt/all caps/bold italic/12 points after/keep with next, "Header 2" to every line that's 12pt/u&lc/bold/6 points after, etc., is that possible? Any tips to automate formatting super-long documents are helpful. I spend an inordinate amount of time clicking the cursor on a line and assigning a style...even with a keyboard shortcut, it takes a long time. |
#3
|
|||
|
|||
Macro to assign styles?
You can use Find and Replace to search for specific formatting and replace
it with a specific style. If you had Word 2002 or above, it would be even easier, as later versions allow you to select all instances of specific formatting. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://www.word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Stacey" wrote in message ... Is it possible to write a macro in Word 2000 to assign styles in a document? For example, if a client gives me an unformatted document and I want to assign "Header 1" to every line that's 14pt/all caps/bold italic/12 points after/keep with next, "Header 2" to every line that's 12pt/u&lc/bold/6 points after, etc., is that possible? Any tips to automate formatting super-long documents are helpful. I spend an inordinate amount of time clicking the cursor on a line and assigning a style...even with a keyboard shortcut, it takes a long time. |
Thread Tools | |
Display Modes | |
|
|