Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

can style changes be put into macros?

 
Post new topic   Reply to topic    Computer Forum Forum Index -> word docmanagement
View previous topic :: View next topic  
Author Message
Catherine
Guest





PostPosted: Sat Dec 22, 2007 9:51 pm    Post subject: can style changes be put into macros? Reply with 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
Google
Sponsor





PostPosted: Sat Dec 22, 2007 9:51 pm    Post subject: Advertisement

Back to top
Graham Mayor
Guest





PostPosted: Sun Dec 23, 2007 6:26 am    Post subject: Re: can style changes be put into macros? Reply with 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:
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





PostPosted: Sun Dec 23, 2007 7:17 am    Post subject: Re: can style changes be put into macros? Reply with quote

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





PostPosted: Sun Dec 23, 2007 8:41 am    Post subject: Re: can style changes be put into macros? Reply with 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:
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





PostPosted: Sun Dec 23, 2007 8:59 am    Post subject: Re: can style changes be put into macros? Reply with quote

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





PostPosted: Sun Dec 23, 2007 11:51 am    Post subject: Re: can style changes be put into macros? Reply with quote

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





PostPosted: Sun Dec 23, 2007 12:07 pm    Post subject: Re: can style changes be put into macros? Reply with quote

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





PostPosted: Sun Dec 23, 2007 2:59 pm    Post subject: Re: can style changes be put into macros? Reply with 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...
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





PostPosted: Sun Dec 23, 2007 4:49 pm    Post subject: Re: can style changes be put into macros? Reply with 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:

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





PostPosted: Sun Dec 23, 2007 10:53 pm    Post subject: Re: can style changes be put into macros? Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> word docmanagement All times are GMT
Page 1 of 1

 
Jump to:  
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
Computer Forum