Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formatting space---

Status
Not open for further replies.

hiklior

Technical User
May 29, 2008
3
US
Hi ,

I am in a real problem. I have a huge file that i just gor from querying the database and i needed it on .doc or . txt format. Since the query result is a table there are lots of spaces between each word . I need only one space between each work. Is there any way to do it. Exactly one space between each word. Is there any way to format it like that.

I would appreciate your help

Hik
 





Hi,

Replace 2 spaces with one space. Perform until no more changes.

Skip,

[glasses]Just traded in my old subtlety...
for a brand NUANCE![tongue]
 
Common now its 400 pages document. Is there any way to automatically format it.
 




Not without VBA.

Turn on your macro recorder and record doing it once.

Connect to a keyboard shortcut

Execute from the keyboard

Skip,

[glasses]Just traded in my old subtlety...
for a brand NUANCE![tongue]
 
View- Find and Replace.

on find rext box highlight the spaces and copy and paste it to the find text box and in replace textbox just hit the spacebar once.

and click on replace all.

Thats it. It was simple
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top