Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
I have a lot of text editing to do in which I need to change styles. The
style changes cannot be global, unfortunately, because the text is so inconsistent. The changes need to be done almost paragraph by paragraph. Is there a way to make a macro of some kind to place in a custom button? I think that would make the reformatted faster. Also, if there is some other idea you have to help me out, that would be great. thanks. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
For the macro to be of any real benefit beyond the controls on the
formatting toolbar/ribbon it really needs to be able to identify and select the paragraphs to automate the whole procedure, but clearly this is not possible. The following macro will select the paragraph the cursor is in, remove any manual formatting and apply the Normal style. Whether that would help I cannot say. Editing other people's poorly formatted text is a pain in the -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote: I have a lot of text editing to do in which I need to change styles. The style changes cannot be global, unfortunately, because the text is so inconsistent. The changes need to be done almost paragraph by paragraph. Is there a way to make a macro of some kind to place in a custom button? I think that would make the reformatted faster. Also, if there is some other idea you have to help me out, that would be great. thanks. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
Thank you, Graham. Did you intend to include a macro for changing to Normal
style? "Graham Mayor" wrote: For the macro to be of any real benefit beyond the controls on the formatting toolbar/ribbon it really needs to be able to identify and select the paragraphs to automate the whole procedure, but clearly this is not possible. The following macro will select the paragraph the cursor is in, remove any manual formatting and apply the Normal style. Whether that would help I cannot say. Editing other people's poorly formatted text is a pain in the -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote: I have a lot of text editing to do in which I need to change styles. The style changes cannot be global, unfortunately, because the text is so inconsistent. The changes need to be done almost paragraph by paragraph. Is there a way to make a macro of some kind to place in a custom button? I think that would make the reformatted faster. Also, if there is some other idea you have to help me out, that would be great. thanks. |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
Oops!
With Selection .MoveUp Unit:=wdParagraph, Count:=1 .MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend .Style = ActiveDocument.Styles("Normal") .Font.Reset .ParagraphFormat.Reset End With Change Normal style in the macro to whatever style you are using in the document. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote: Thank you, Graham. Did you intend to include a macro for changing to Normal style? "Graham Mayor" wrote: For the macro to be of any real benefit beyond the controls on the formatting toolbar/ribbon it really needs to be able to identify and select the paragraphs to automate the whole procedure, but clearly this is not possible. The following macro will select the paragraph the cursor is in, remove any manual formatting and apply the Normal style. Whether that would help I cannot say. Editing other people's poorly formatted text is a pain in the -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote: I have a lot of text editing to do in which I need to change styles. The style changes cannot be global, unfortunately, because the text is so inconsistent. The changes need to be done almost paragraph by paragraph. Is there a way to make a macro of some kind to place in a custom button? I think that would make the reformatted faster. Also, if there is some other idea you have to help me out, that would be great. thanks. |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
Thank you!!
"Graham Mayor" wrote: Oops! With Selection .MoveUp Unit:=wdParagraph, Count:=1 .MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend .Style = ActiveDocument.Styles("Normal") .Font.Reset .ParagraphFormat.Reset End With Change Normal style in the macro to whatever style you are using in the document. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote: Thank you, Graham. Did you intend to include a macro for changing to Normal style? "Graham Mayor" wrote: For the macro to be of any real benefit beyond the controls on the formatting toolbar/ribbon it really needs to be able to identify and select the paragraphs to automate the whole procedure, but clearly this is not possible. The following macro will select the paragraph the cursor is in, remove any manual formatting and apply the Normal style. Whether that would help I cannot say. Editing other people's poorly formatted text is a pain in the -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote: I have a lot of text editing to do in which I need to change styles. The style changes cannot be global, unfortunately, because the text is so inconsistent. The changes need to be done almost paragraph by paragraph. Is there a way to make a macro of some kind to place in a custom button? I think that would make the reformatted faster. Also, if there is some other idea you have to help me out, that would be great. thanks. |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
Catherine;2543492 Wrote: Thank you!! "Graham Mayor" wrote: - Oops! With Selection .MoveUp Unit:=wdParagraph, Count:=1 .MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend .Style = ActiveDocument.Styles("Normal") .Font.Reset .ParagraphFormat.Reset End With Change Normal style in the macro to whatever style you are using in the document. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote:- Thank you, Graham. Did you intend to include a macro for changing to Normal style? "Graham Mayor" wrote: - For the macro to be of any real benefit beyond the controls on the formatting toolbar/ribbon it really needs to be able to identify and select the paragraphs to automate the whole procedure, but clearly this is not possible. The following macro will select the paragraph the cursor is in, remove any manual formatting and apply the Normal style. Whether that would help I cannot say. Editing other people's poorly formatted text is a pain in the -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Catherine wrote: I have a lot of text editing to do in which I need to change styles. The style changes cannot be global, unfortunately, because the text is so inconsistent. The changes need to be done almost paragraph by paragraph. Is there a way to make a macro of some kind to place in a custom button? I think that would make the reformatted faster. Also, if there is some other idea you have to help me out, that would be great. thanks. -- - FWIW, you can define a style, and go through the document and assign it to the paragraphs you want. I implicitly assume that you have the non-printing characters showing (press CTRL+SHIFT+8 if not) so you see what you'r doing. The first time you assign the style, but for changing the next instances you can use CTRL+Y (repeat last command). You have to go through multiple passes (for each style, as you go style-by-style), and you may lose overview, but personally I find this way quicker (and RSI friendly). -- Henk57 |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
Henk57 wrote:
FWIW, you can define a style, and go through the document and assign it to the paragraphs you want. I implicitly assume that you have the non-printing characters showing (press CTRL+SHIFT+8 if not) so you see what you'r doing. The first time you assign the style, but for changing the next instances you can use CTRL+Y (repeat last command). You have to go through multiple passes (for each style, as you go style-by-style), and you may lose overview, but personally I find this way quicker (and RSI friendly). This may work, but the problem with it is that it may not affect manual text or paragraph formatting when you apply the new style to the text. Simply re-applying the original style would be as effective, but has the same provisos. The macro has the extra code required to remove such formatting. (or manually CTRL+Space and CTRL+Q) -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org |
#8
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
Also, FWIW, note that manually applying the Clear Formatting "style" has the
effect of applying Normal style *and* removing direct font and paragraph formatting. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "Graham Mayor" wrote in message ... Henk57 wrote: FWIW, you can define a style, and go through the document and assign it to the paragraphs you want. I implicitly assume that you have the non-printing characters showing (press CTRL+SHIFT+8 if not) so you see what you'r doing. The first time you assign the style, but for changing the next instances you can use CTRL+Y (repeat last command). You have to go through multiple passes (for each style, as you go style-by-style), and you may lose overview, but personally I find this way quicker (and RSI friendly). This may work, but the problem with it is that it may not affect manual text or paragraph formatting when you apply the new style to the text. Simply re-applying the original style would be as effective, but has the same provisos. The macro has the extra code required to remove such formatting. (or manually CTRL+Space and CTRL+Q) -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org |
#9
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
Is there a way, when doing this, to wipe out hard returns? Dealing with tThe
lack of word-wrap is most time-consuming. "Suzanne S. Barnhill" wrote: Also, FWIW, note that manually applying the Clear Formatting "style" has the effect of applying Normal style *and* removing direct font and paragraph formatting. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "Graham Mayor" wrote in message ... Henk57 wrote: FWIW, you can define a style, and go through the document and assign it to the paragraphs you want. I implicitly assume that you have the non-printing characters showing (press CTRL+SHIFT+8 if not) so you see what you'r doing. The first time you assign the style, but for changing the next instances you can use CTRL+Y (repeat last command). You have to go through multiple passes (for each style, as you go style-by-style), and you may lose overview, but personally I find this way quicker (and RSI friendly). This may work, but the problem with it is that it may not affect manual text or paragraph formatting when you apply the new style to the text. Simply re-applying the original style would be as effective, but has the same provisos. The macro has the extra code required to remove such formatting. (or manually CTRL+Space and CTRL+Q) -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org |
#10
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
can style changes be put into macros?
See http://word.mvps.org/FAQs/Formatting/CleanWebText.htm
http://gregmaxey.mvps.org/Clean_Up_Text.htm -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "Catherine" wrote in message ... Is there a way, when doing this, to wipe out hard returns? Dealing with tThe lack of word-wrap is most time-consuming. "Suzanne S. Barnhill" wrote: Also, FWIW, note that manually applying the Clear Formatting "style" has the effect of applying Normal style *and* removing direct font and paragraph formatting. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA "Graham Mayor" wrote in message ... Henk57 wrote: FWIW, you can define a style, and go through the document and assign it to the paragraphs you want. I implicitly assume that you have the non-printing characters showing (press CTRL+SHIFT+8 if not) so you see what you'r doing. The first time you assign the style, but for changing the next instances you can use CTRL+Y (repeat last command). You have to go through multiple passes (for each style, as you go style-by-style), and you may lose overview, but personally I find this way quicker (and RSI friendly). This may work, but the problem with it is that it may not affect manual text or paragraph formatting when you apply the new style to the text. Simply re-applying the original style would be as effective, but has the same provisos. The macro has the extra code required to remove such formatting. (or manually CTRL+Space and CTRL+Q) -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using Macros to Style Multiple Table Rows | Tables | |||
Style applied to 1 graf creates 2 instances of style. section prob | Microsoft Word Help | |||
Wood 2002 remove character style and revert to paragraph style | Page Layout | |||
With macros enabled I still receive "macros disabled" warning. | Microsoft Word Help | |||
Macros vs. Style | Microsoft Word Help |