|
| View previous topic :: View next topic |
| Author |
Message |
Catherine Guest
|
Posted: Sat Dec 22, 2007 9:51 pm Post subject: 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. |
|
| Back to top |
|
 |
Google Sponsor

|
Posted: Sat Dec 22, 2007 9:51 pm Post subject: Advertisement |
|
|
|
|
| Back to top |
|
 |
Graham Mayor Guest
|
Posted: Sun Dec 23, 2007 6:26 am Post subject: Re: 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:
| Quote: | 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. |
|
|
| Back to top |
|
 |
Catherine Guest
|
Posted: Sun Dec 23, 2007 7:17 am Post subject: Re: 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:
| Quote: | 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.
|
|
|
| Back to top |
|
 |
Graham Mayor Guest
|
Posted: Sun Dec 23, 2007 8:41 am Post subject: Re: 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:
| Quote: | 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. |
|
|
| Back to top |
|
 |
Catherine Guest
|
Posted: Sun Dec 23, 2007 8:59 am Post subject: Re: can style changes be put into macros? |
|
|
Thank you!!
"Graham Mayor" wrote:
| Quote: | 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.
|
|
|
| Back to top |
|
 |
Henk57 Guest
|
Posted: Sun Dec 23, 2007 11:51 am Post subject: Re: can style changes be put into macros? |
|
|
Catherine;2543492 Wrote:
| Quote: | 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 |
|
| Back to top |
|
 |
Graham Mayor Guest
|
Posted: Sun Dec 23, 2007 12:07 pm Post subject: Re: can style changes be put into macros? |
|
|
Henk57 wrote:
| Quote: |
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
<>>< ><<> ><<> <>>< ><<> <>>< <>><<> |
|
| Back to top |
|
 |
Suzanne S. Barnhill Guest
|
Posted: Sun Dec 23, 2007 2:59 pm Post subject: Re: 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" <gmayor@REMOVETHISmvps.org> wrote in message
news:uvg%23nxVRIHA.2268@TK2MSFTNGP02.phx.gbl...
| Quote: | 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
|
|
|
| Back to top |
|
 |
Catherine Guest
|
Posted: Sun Dec 23, 2007 4:49 pm Post subject: Re: 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:
| Quote: | 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" <gmayor@REMOVETHISmvps.org> wrote in message
news:uvg%23nxVRIHA.2268@TK2MSFTNGP02.phx.gbl...
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
|
|
|
| Back to top |
|
 |
Suzanne S. Barnhill Guest
|
Posted: Sun Dec 23, 2007 10:53 pm Post subject: Re: 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" <Catherine@discussions.microsoft.com> wrote in message
news:7545305D-4B15-4755-89BF-98008DCA1F24@microsoft.com...
| Quote: | 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" <gmayor@REMOVETHISmvps.org> wrote in message
news:uvg%23nxVRIHA.2268@TK2MSFTNGP02.phx.gbl...
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
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|