Solved

Words Divided at end of line - how to correct whose document (Word 2013)

Posted on 2016-10-14
9
83 Views
Last Modified: 2016-10-18
I am editing a document in which words are split at the end of lines (line ends with hyphen and the word is completed on next line).
Is there any way of correcting all of these without having to manually adjust each one.
0
Comment
Question by:Michael Murphy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 28

Expert Comment

by:Pawan Kumar
ID: 41843476
Try..

1. Control-Shift-Hyphen
2. Control-Shift-Spacebar
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41843514
Hi,

pls try

Home / Editing / Replace

if you don't see the Special button, click More.
Click Special
Click Optional Hyphen to remove manual hyphens.
or
Click Nonbreaking Hyphen to remove nonbreaking hyphens.

Leave the Replace with box empty.
Click Find Next, Replace, or Replace All.

Regards
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41843515
You could do a find and replace,

Find: -
Replace:  (leave blank)

In Publisher there is a setting in Options that will produce Auto-Hyphenation. It can be disabled but it only applies to text Boxes that are created after the setting is disabled. Those created prior to changing the setting will retain their hyphens but again a Find and Replace should remove them.

Thanks
Rob H
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 32

Assisted Solution

by:Paul Sauvé
Paul Sauvé earned 250 total points
ID: 41843709
go to the Page Layout tab ―> Page Setup group ―> Hyphenation option ―> if Automatic is selected, click to deselect and all is good....auto hyphenation
0
 

Author Comment

by:Michael Murphy
ID: 41845186
Thanks for the information above.
The problem is that I have a lot of hyphens which I entered in the text which do NOT occur at the end of a Page and which I need to keep.   (ever-increasing; Indo-China; anti-clerical; Moulin-a-Vent etc)

I only want to delete the hypens at the end of lines (which divide whole words). I can do this manually, but I was wondering if there is a quick way of going about it.
0
 
LVL 32

Accepted Solution

by:
Paul Sauvé earned 250 total points
ID: 41845220
>>I only want to delete the hyphens at the end of lines (which divide whole words). I can do this manually, but I was wondering if there is a quick way of going about it.
did you check to see if the Automatic Hyphenation optionis selected, as i mentioned above?
0
 
LVL 50

Expert Comment

by:Rgonzo1971
ID: 41845623
Hi,

pls try

Sub SearchHyphenEndOfLine()
    Dim iCount As Integer
    Selection.HomeKey Unit:=wdStory
    With Selection.Find
        .ClearFormatting
        .Text = "-"
        .Replacement.Text = ""
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .Execute
    End With

    Do While Selection.Find.Found = True And iCount < 1000
        iCount = iCount + 1
        HyphenLn = Selection.Information(wdFirstCharacterLineNumber)
        Set rng = ActiveDocument.Range(Selection.End, Selection.End + 1)
        If rng.Information(wdFirstCharacterLineNumber) > HyphenLn Then
            Selection.Delete
        End If
        Selection.Find.Execute
    Loop
End Sub

Open in new window

Regards
0
 

Author Comment

by:Michael Murphy
ID: 41845924
Where and how do I apply this. Will do it.
0
 
LVL 50

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 250 total points
ID: 41846151
Hi,

Open your Document in Word.
Press Alt+F11 to open Visual Basic Editor (VBE).
Right-click on your document name in the "Project-VBAProject" pane (at the top left corner of the editor window) and select Insert -> Module from the context menu.
Insert a new VBA module to the Word Document
Copy the VBA code and paste it to the right pane of the VBA editor ("Module1" window).
Paste the code to the VBA module
Press Alt+Q to close the Editor window and switch back to your workbook.
Save your workbook as "Word macro-enabled document
When you want to run the VBA code that you added as described in the section above: press Alt+F8 to open the "Macro" dialog.
Then select the wanted macro from the "Macro Name" list and click the "Run" button.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question