A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Multiple inappropriate spacing



 
 
Thread Tools Display Modes
  #11  
Old December 2nd, 2005, 07:16 AM posted to microsoft.public.word.newusers
external usenet poster
 
Posts: n/a
Default Multiple inappropriate spacing

This macro will do it:

Sub ClearSpaces()
Selection.HomeKey Unit:=wdStory
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "([ ])@"
.Replacement.Text = "\1"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute replace:=wdReplaceAll
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Dawn Crosier wrote:
I would create a macro which performs the Find/Replace All and add
that as a command button on his / her toolbar. Then all they have to
do is click the button.


"Brenda Rueter" wrote in message
...
Word 2002, SP-3

A user often hits the spacebar multiple times between words, 3-4
times sometimes. The spell checker does not catch those spaces as
being incorrect. What is a good way to have Word remove these
inappropriate spaces automatically? The user does not want to have
to do a Find/Replace on every document as well as running the
speller. Tia!



  #12  
Old December 2nd, 2005, 01:15 PM posted to microsoft.public.word.newusers
external usenet poster
 
Posts: n/a
Default Multiple inappropriate spacing

You don't need one. For Find and Replace, you can just type a space in. I
think there is a "white space" character that will find tabs and spaces, or
something.

Just by the way: Your attempt with AutoCorrect didn't work because AC
triggers when you hit the space bar, and so trying to AutoCorrect something
that is also the trigger would create an endless loop, no? So AutoCorrect
doesn't permit it, I think.

Daiya


On 12/1/05 8:22 PM, "Uncle Joe" wrote:

Does anyone know the special character for an
ordinary space...not a fixed space? I tried ^s
and ^w without success.


  #13  
Old December 2nd, 2005, 05:01 PM posted to microsoft.public.word.newusers
external usenet poster
 
Posts: n/a
Default Multiple inappropriate spacing

It's actually British. I don't think I've ever heard it here.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Greg Maxey" wrote in message
...
That Alabama saw must me tied in some way to the North Carolina saw "I
wouldn't eat (such and such) with a dog's mouth."

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

Uncle Joe wrote:
"a dog's breakfast"


There's a term you don't hear every day. (Smile.)

"Suzanne S. Barnhill" wrote in message
...
Ah, no, I don't guess there's anything that will catch that except
F&R or eyeballing. That's why I keep NPC displayed all the time. If

only
other users would switch the display *once* before sending out a
document,
they'd realize why I describe their manuscripts as a dog's breakfast.

g

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

"Uncle Joe" wrote in message
...
But the OP was referring to her client's tendency to add
2-5 spaces between individual words, not sentences.

"Suzanne S. Barnhill" wrote in message
...
There's a setting in the grammar checker. For "spaces between
sentences,"
you can select 1, 2, or "don't check." If you select 1 or 2, Word
will highlight instances of nonconforming use.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so
all may benefit.

"Brenda Rueter" wrote in message
...
I thought of both of those options, but the user was CONVINCED
there
was a
setting in spell check. So far as I can see, no there's not! I
will approach her with the macro idea. Thanks for responding!!!

"Uncle Joe" wrote in message
...
Dawn's suggestion is the best approach yet. I approached
the problem by trying to invoke AutoCorrect but it won't
accept blanks in the "from" and "to" fields. Drat! That had
promise because it could correct improper spacing on the fly.

Instruct your user to concentrate on not hitting the spacebar
multiple times between words. It's an undesirable technique.

"Dawn Crosier" wrote in message
...
I would create a macro which performs the Find/Replace All and
add
that
as a command button on his / her toolbar. Then all they have
to do
is
click the button.

--
Dawn Crosier
Microsoft MVP
"Education Lasts a Lifetime"

This message is posted to a newsgroup. Please post replies and
questions to the newsgroup so that others can learn as well.

"Brenda Rueter" wrote in message
...
Word 2002, SP-3

A user often hits the spacebar multiple times between words,
3-4
times
sometimes. The spell checker does not catch those spaces as
being
incorrect. What is a good way to have Word remove these
inappropriate
spaces automatically? The user does not want to have to do a
Find/Replace
on every document as well as running the speller. Tia!




  #14  
Old December 2nd, 2005, 06:15 PM posted to microsoft.public.word.newusers
external usenet poster
 
Posts: n/a
Default Multiple inappropriate spacing

Yes that's right. It was from a man from Manchester, now living
abroad, that I first heard the term "a dog's breakfast." Declining to
eat something with a dog's mouth has been used in my pocket of western
NC all of my life.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Spacing is mysteriously locked at about 14 points. David Hunter Page Layout 6 November 6th, 2006 12:25 PM
Double Spacing? Maybe? Rob General Discussion 1 September 30th, 2005 01:14 PM
Why my line spacing is wider than everyone else (line spacing)? Melody Koh General Discussion 6 September 13th, 2005 11:12 PM
Outlook Email Line Spacing Problem DaleB General Discussion 0 August 23rd, 2005 05:19 PM
Spacing question in reply messages in Outlook MadTodd General Discussion 0 February 22nd, 2005 04:49 PM


All times are GMT +1. The time now is 07:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.