Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-10-14
9
Medium Priority
?
103 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 30

Expert Comment

by:Pawan Kumar
ID: 41843476
Try..

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

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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 33

Assisted Solution

by:Paul Sauvé
Paul Sauvé earned 1000 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 33

Accepted Solution

by:
Paul Sauvé earned 1000 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 53

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 53

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 1000 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

670 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