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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Removing spaces between words in MS Word



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2009, 12:54 AM posted to microsoft.public.word.docmanagement
BrendanC
external usenet poster
 
Posts: 3
Default Removing spaces between words in MS Word

I download a lot of docs that require reformatting to remove a lot of spaces
between words; then this is cut & paste via word into our database.

Is there an automated way to remove spaces between words? I have found a
macro to remove leading white space but not spaces between words (to leave
only one space between each word).

Note: the spaces b/w each word may vary. Here is an example of the text
before and after 'conversion' that is required:

'This has too many variable spaces
between words'

Desired result:

'This has too many variable spaces between words'

Thanks!
Brendan
  #2  
Old July 11th, 2009, 01:09 AM posted to microsoft.public.word.docmanagement
Character[_4_]
external usenet poster
 
Posts: 34
Default Removing spaces between words in MS Word



BrendanC wrote:
I download a lot of docs that require reformatting to remove a lot of spaces
between words; then this is cut & paste via word into our database.

Is there an automated way to remove spaces between words? I have found a
macro to remove leading white space but not spaces between words (to leave
only one space between each word).

Note: the spaces b/w each word may vary. Here is an example of the text
before and after 'conversion' that is required:

'This has too many variable spaces
between words'

Desired result:

'This has too many variable spaces between words'

Thanks!
Brendan


Use Find/Replace - Find ^w and replace with a single space. This will
eliminate all instances of multiple spaces (two or more) with single
spaces.

- Character
  #3  
Old July 11th, 2009, 01:49 AM posted to microsoft.public.word.docmanagement
BrendanC
external usenet poster
 
Posts: 3
Default Removing spaces between words in MS Word

Thanks.. seems to help.. but I needed to run the find/replace several times,
as each time it only removed several spaces...
Am I doing soemthing wrong?

confirming: ^w is CONTROL W.. select this in find/replace

I'm running Word 2003.

"Character" wrote:



BrendanC wrote:
I download a lot of docs that require reformatting to remove a lot of spaces
between words; then this is cut & paste via word into our database.

Is there an automated way to remove spaces between words? I have found a
macro to remove leading white space but not spaces between words (to leave
only one space between each word).

Note: the spaces b/w each word may vary. Here is an example of the text
before and after 'conversion' that is required:

'This has too many variable spaces
between words'

Desired result:

'This has too many variable spaces between words'

Thanks!
Brendan


Use Find/Replace - Find ^w and replace with a single space. This will
eliminate all instances of multiple spaces (two or more) with single
spaces.

- Character

  #4  
Old July 11th, 2009, 02:18 AM posted to microsoft.public.word.docmanagement
garfield-n-odie [MVP]
external usenet poster
 
Posts: 4,427
Default Removing spaces between words in MS Word

No, that's how the find and replace method works. You repeat as
many times as needed until 'find' finds nothing to replace.

BrendanC wrote:

Thanks.. seems to help.. but I needed to run the find/replace several times,
as each time it only removed several spaces...
Am I doing soemthing wrong?

confirming: ^w is CONTROL W.. select this in find/replace

I'm running Word 2003.

"Character" wrote:



BrendanC wrote:

I download a lot of docs that require reformatting to remove a lot of spaces
between words; then this is cut & paste via word into our database.

Is there an automated way to remove spaces between words? I have found a
macro to remove leading white space but not spaces between words (to leave
only one space between each word).

Note: the spaces b/w each word may vary. Here is an example of the text
before and after 'conversion' that is required:

'This has too many variable spaces
between words'

Desired result:

'This has too many variable spaces between words'

Thanks!
Brendan


Use Find/Replace - Find ^w and replace with a single space. This will
eliminate all instances of multiple spaces (two or more) with single
spaces.

- Character


  #5  
Old July 11th, 2009, 02:38 AM posted to microsoft.public.word.docmanagement
BrendanC
external usenet poster
 
Posts: 3
Default Removing spaces between words in MS Word

Thanks!

Brendan

"garfield-n-odie [MVP]" wrote:

No, that's how the find and replace method works. You repeat as
many times as needed until 'find' finds nothing to replace.

BrendanC wrote:

Thanks.. seems to help.. but I needed to run the find/replace several times,
as each time it only removed several spaces...
Am I doing soemthing wrong?

confirming: ^w is CONTROL W.. select this in find/replace

I'm running Word 2003.

"Character" wrote:



BrendanC wrote:

I download a lot of docs that require reformatting to remove a lot of spaces
between words; then this is cut & paste via word into our database.

Is there an automated way to remove spaces between words? I have found a
macro to remove leading white space but not spaces between words (to leave
only one space between each word).

Note: the spaces b/w each word may vary. Here is an example of the text
before and after 'conversion' that is required:

'This has too many variable spaces
between words'

Desired result:

'This has too many variable spaces between words'

Thanks!
Brendan

Use Find/Replace - Find ^w and replace with a single space. This will
eliminate all instances of multiple spaces (two or more) with single
spaces.

- Character



  #6  
Old July 11th, 2009, 04:29 AM posted to microsoft.public.word.docmanagement
Character[_4_]
external usenet poster
 
Posts: 34
Default Removing spaces between words in MS Word



BrendanC wrote:

Thanks.. seems to help.. but I needed to run the find/replace several times,
as each time it only removed several spaces...
Am I doing soemthing wrong?

confirming: ^w is CONTROL W.. select this in find/replace


No, it's the character sequence ^ (shift-6) followed by w

Select 'replace all'

and they should all go away at once.

I just tried it, also in Word 2003, and that's what it did for me.
It's possible that your documents have some attribute(s) that my test
document didn't.

- Character

I'm running Word 2003.

"Character" wrote:



BrendanC wrote:

I download a lot of docs that require reformatting to remove a lot of spaces
between words; then this is cut & paste via word into our database.

Is there an automated way to remove spaces between words? I have found a
macro to remove leading white space but not spaces between words (to leave
only one space between each word).

Note: the spaces b/w each word may vary. Here is an example of the text
before and after 'conversion' that is required:

'This has too many variable spaces
between words'

Desired result:

'This has too many variable spaces between words'

Thanks!
Brendan


Use Find/Replace - Find ^w and replace with a single space. This will
eliminate all instances of multiple spaces (two or more) with single
spaces.

- Character

 




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


All times are GMT +1. The time now is 02:07 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.