Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2012, 08:37 AM
tomavey tomavey is offline Cut and paste with widow orphan control Windows 7 32bit Cut and paste with widow orphan control Office 2007
Novice
Cut and paste with widow orphan control
 
Join Date: Nov 2012
Posts: 1
tomavey is on a distinguished road
Default Cut and paste with widow orphan control

I have a list of names and address (over 1200) in a simple text file. I would like to simply cut-and-paste them into a formatted word doc with automatic control over widow/orphan for each listing. Is there a code I can insert that will turn on widow/orphan control between entries?
Reply With Quote
  #2  
Old 11-06-2012, 09:26 AM
Ulodesk Ulodesk is offline Cut and paste with widow orphan control Windows 7 64bit Cut and paste with widow orphan control Office 2010 64bit
Word 2013 Expert Cert
 
Join Date: Sep 2009
Location: Virginia
Posts: 866
Ulodesk is on a distinguished road
Default Control

What you may be looking for is a Paste Special feature, Paste Unformatted. When copied text is pasted ths way, it inherits the properties of the Style of the receiving paragraph (which may be a "blank" paragraph, just the paragraph mark. If that is set with widow and orphan control, you copy will inherit it.


If you're not familiar with Styles, you may need to look them up. In essence, everything in Word has a Style, which is a group of properties -- characteristics -- such as font, size, spacing, etc. Orphan and widow control are among these.


Paste special is available on Home tab when you press the Paste button down arrow.

Hope this helps.

Ulodesk
Reply With Quote
  #3  
Old 11-06-2012, 06:04 PM
macropod's Avatar
macropod macropod is offline Cut and paste with widow orphan control Windows 7 64bit Cut and paste with widow orphan control Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Given that it's a text file (ie no formatting), a simple Paste has the same results as Paste Special.

That, however, really doesn't address the issue, which is that each line from a plain text file is likely to be a separate physical paragraph.

Assuming there's an empty line between each set of records, the following wildcard Find/Replace will join each record's lines into a single paragraph:
Find = ([!^13^11])[^13^11]([!^13^11])
Replace = \1^l\2
You can then use Ctrl-A to select the entire document and format the paragraphs with the 'keep together' attribute. That will eliminate any splitting across page boundaries.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
widow orphan



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cut and paste with widow orphan control Content control titles jillapass Word VBA 3 05-29-2012 06:11 AM
Cut and paste with widow orphan control "Paste cells" in paste menu averagejoe Word 2 03-13-2012 05:40 PM
Don't print a control Tracy Word VBA 0 09-11-2011 03:29 PM
control the AutoScroll speed lucky1thanx Word 0 03-18-2010 05:42 PM
Control Toolbox tjc154 Word 0 03-29-2009 07:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft