There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Business Applications
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Word 2000 split sentences


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
reuven's Avatar
Member with 46 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Jul-2008, 12:40 PM #1
Solved: Word 2000 split sentences
Windows 98se.Word 2000 I have downloaded a document, that opens in word2000.But the sentences are not completed on the same line. Like this:- ------------------------------------
-----
------------------------------------
-----
I can edit the the document by deleting the spaces, but this document consists of 500 pages, so is there a simpler and more correct method? The help file on Words is hopeless.I will be pleased to receive any ideas.
reuven 1925
Plantsman's Avatar
Senior Member with 185 posts.
 
Join Date: Jan 2008
Experience: Intermediate
19-Jul-2008, 01:46 PM #2
Here are two macros. To make these permanent in Word select and copy the first one to the clipboard i.e. StripSpaces macro (first one} then go to Tools, Macros, Record Macro. Now type in StripSpaces as the name, click OK then stop the macro by clicking on the stop button. Now select Tools, Macro, Macros. The name of your Macro will be displayed. Select it and click on the Step Into button, this will open the Visual Basic Editor and you will see some entries in the main window (the last entries). Delete these entries carefully with the backspace button. Now select Edit, Paste from the menu and paste the text you copied earlier. Choose file, Save as Normal to save your macro, then exit back to word. Repeat these steps choosing a different name to copy the other macro.

After you have created the first Macro, you will see it displayed in the Visual Basic Window when you enter you next macro. It will be separated from your current macro by a dotted line. Leave the dotted line and the previous macro alone and just delete anything after it with the backspace key. This applies to any further macros you may enter.

Look at each macro individually they are both set to delete 30 instances of spaces or paragraphs in the line which reads

For x=1 to 30

Just change the 30 to whatever figure you want. This will be large for a 500 page document. Try 50000 as a test.



Here is a macro for stripping spaces
Select text between the dotted lines

Sorry the first .Text = " " contains two spaces between the " "
The second .Text = " " contains one space


You will have to correct the first instance of .Text = " " after copying and pasting into Word. This web page hasn't carried over the formatting properly.
----------------------------------------------------------

Sub StripSpaces()
For x = 1 To 30
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = " "
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
End With
Selection.Find.Execute Replace:=wdReplaceAll
Next x
End Sub
------------------------------------------------------------------
Just in case, here's one to strip Paragraphs.
Select text between the dotted lines

--------------------------------------------------------------------
Sub StripParagraphs()
For x = 1 To 30
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^p^p^p"
.Replacement.Text = "^p^p"
.Forward = True
.Wrap = wdFindContinue
End With
Selection.Find.Execute Replace:=wdReplaceAll
Next x
End Sub

-------------------------------------------------------------------------
__________________
Plant something for Earth's sake.

Last edited by Plantsman : 19-Jul-2008 01:59 PM.
reuven's Avatar
Member with 46 posts.
 
Join Date: Feb 2005
Experience: Advanced
20-Jul-2008, 04:17 AM #3
Thank you Plantsman. Before I carry out your method, there may be a simpler solution to my individual problem.I downloaded my document from the following-www.gutenberg.org/etext/1079- It is a book Tristam Shandy. The format was 'plaintext' I have since downloaded the same book from Gutenberg as a zip file. This file gives me the complete book including illustrations. The down side ,the book is shown with the pages side by side,which does not make for easy reading. Is there any way to resolve this problem? If this book is read on line from the same address,page by page , this does not occur.
reuven1925
Plantsman's Avatar
Senior Member with 185 posts.
 
Join Date: Jan 2008
Experience: Intermediate
20-Jul-2008, 05:57 PM #4
Here is the text file attached with paragraphs removed ( they were not spaces) and divided by Chapters.
Attached Files
File Type: zip TRistram Shandy.zip (384.7 KB, 6 views)
reuven's Avatar
Member with 46 posts.
 
Join Date: Feb 2005
Experience: Advanced
23-Jul-2008, 07:24 AM #5
Word 2000 split sentences
Thank you Plantsman,sorry for delay in thanking for your help.But I did not get any e-mail notification that there was a new message.Exactly what did you do?
reuven1925
jimr381's Avatar
Distinguished Member with 3,530 posts.
 
Join Date: Jul 2007
Location: 1313 Mockingbird Lane
Experience: 1 Child, so not much
23-Jul-2008, 09:37 AM #6
If it was just extraneous paragraphs then I would typically use a Find/Replace to find the 2 paragraph markers and replace them with 1.

Please mark this thread as solved via the "Mark Solved" button at the top of the post.
reuven's Avatar
Member with 46 posts.
 
Join Date: Feb 2005
Experience: Advanced
23-Jul-2008, 02:49 PM #7
Word 2000 split sentences
thank you jimr381, but I have no "Mark solved" button.
Plantsman's Avatar
Senior Member with 185 posts.
 
Join Date: Jan 2008
Experience: Intermediate
23-Jul-2008, 04:22 PM #8
Quote:
Originally Posted by reuven View Post
Thank you Plantsman,sorry for the delay. Exactly what did you do?
reuven1925
There was a paragraph at the end of every line so they all had to be stripped away first. Then a macro to find each Chapter heading and place it on a separate line, that part didn't work 100% (still working on it) then did a bit of manual cleaning up which didn't take long.

By the way the StripParagraphs macro I gave you wouldn't have worked anyway as that wouldn't have stripped all of them. Hope the document is now how you wanted it. Glad to have helped.
__________________
Plant something for Earth's sake.
reuven's Avatar
Member with 46 posts.
 
Join Date: Feb 2005
Experience: Advanced
24-Jul-2008, 01:21 AM #9
Word 2000 split sentences
Thank you again Plantsman, Exactly as I required.
Reuven
jimr381's Avatar
Distinguished Member with 3,530 posts.
 
Join Date: Jul 2007
Location: 1313 Mockingbird Lane
Experience: 1 Child, so not much
24-Jul-2008, 11:09 AM #10
Reuven that is because you made a new account and posted it under that account. If I were you I would ask an admin if they could combine the accounts and mark the post as being solved.

Last edited by jimr381 : 24-Jul-2008 11:19 AM.
LauraMJ's Avatar
Computer Specs
Administrator with 4,223 posts.
 
Join Date: Mar 2004
Location: Somewhere back in the Mountain
Experience: better than my sister
24-Jul-2008, 02:02 PM #11
I've merged the two accounts. Marking this as "solved."
reuven's Avatar
Member with 46 posts.
 
Join Date: Feb 2005
Experience: Advanced
25-Jul-2008, 01:48 AM #12
Solved: Word 2000 split sentences
LauraMJ. Thank you.
reuven
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:56 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.