Guest guest Posted November 2, 2006 Report Share Posted November 2, 2006 > Dear Maharajas and Prabhus > PAMHO AGTSP > > Does anyone know how to get Word to REPLACE 2 or more empty spaces in a > line with just one space, preferably in AutoCorrect or otherwise in the > Find and Replace? Hit Ctrl F (Find), click the "Replace" tab; it gives the option "Find what:" and you type in 2 spaces, and underneath where it says "with what:" type in one space. ys Quote Link to comment Share on other sites More sharing options...
Guest guest Posted November 2, 2006 Report Share Posted November 2, 2006 I don't think you can do it in autocorrect, just find and replace. Hit two spaces in the find box and one in the replace box. You won't see any characters but that's all right. Then hit replace all. Run it through a few times in case you had 3 or more spaces in the original. I've got a nice macro that handles this: Public Sub MAIN() WordBasic.EditReplace Find:=" ", replace:=, Direction:=0, MatchCase:=1, WholeWord:=0, PatternMatch:=0, SoundsLike:=0, ReplaceAll:=1, Format:=0, Wrap:=1 End Sub Your servant, Dravida dasa At 05:32 AM 11/2/2006 -0500, Ajamila (das) ACBSP (Goloka Books - UK) wrote: >Dear Maharajas and Prabhus >PAMHO AGTSP > >Does anyone know how to get Word to REPLACE 2 or more empty spaces in a line >with just one space, preferably in AutoCorrect or otherwise in the Find and >Replace? > >In Tools AutoCorrect Options you can REPLACE (words or characters) WITH >(other words and characters). I need to know 'which' characters represent >one space bar, if at all that is possible. > >Thanks. > >ys > >ad > > >-- > > >Version: 7.5.430 / Virus Database: 268.13.24/514 - Release 11/2/2006 >5:15 PM > > > > >-- > > >Version: 7.5.430 / Virus Database: 268.13.24/514 - Release 11/2/2006 >5:15 PM -- Version: 7.5.430 / Virus Database: 268.13.24/514 - Release 11/2/2006 5:15 PM Quote Link to comment Share on other sites More sharing options...
Guest guest Posted November 3, 2006 Report Share Posted November 3, 2006 Thanks, a useful macro. ys ad > I don't think you can do it in autocorrect, just find and replace. Hit two > spaces in the find box and one in the replace box. You won't see any > characters but that's all right. Then hit replace all. Run it through a > few times in case you had 3 or more spaces in the original. > > I've got a nice macro that handles this: > > Public Sub MAIN() > WordBasic.EditReplace Find:=" ", replace:=, Direction:=0, > MatchCase:=1, WholeWord:=0, PatternMatch:=0, SoundsLike:=0, ReplaceAll:=1, > Format:=0, Wrap:=1 End Sub > > > Your servant, > Dravida dasa > > > At 05:32 AM 11/2/2006 -0500, Ajamila (das) ACBSP (Goloka Books - UK) > wrote: > > >Dear Maharajas and Prabhus > >PAMHO AGTSP > > > >Does anyone know how to get Word to REPLACE 2 or more empty spaces in a > >line with just one space, preferably in AutoCorrect or otherwise in the > >Find and Replace? > > > >In Tools AutoCorrect Options you can REPLACE (words or characters) WITH > >(other words and characters). I need to know 'which' characters represent > >one space bar, if at all that is possible. > > > >Thanks. > > > >ys > > > >ad > > > > > >-- > > > > > >Version: 7.5.430 / Virus Database: 268.13.24/514 - Release Date: > >11/2/2006 5:15 PM > > > > > > > > > >-- > > > > > >Version: 7.5.430 / Virus Database: 268.13.24/514 - Release Date: > >11/2/2006 5:15 PM > > > -- > > > Version: 7.5.430 / Virus Database: 268.13.24/514 - Release 11/2/2006 > 5:15 PM Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.