Bloody Computer

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Saturday, 19 January 2008

MS Word: replace, reformat, rejoice

Posted on 08:40 by Unknown
Here is the scenario, you have copied some text from somewhere and pasted it into Word; however, the text ends up looking something like this.

To see the cause of this problem, press the 'Show/Hide ¶' button. As shown, the original text has carriage returns - as indicated by the '¶' marks - at the end of the original lines. When this text was pasted into word the lines were no longer the same length, so, the carriage returns were in the wrong place.

The solution to this problem is to replace the carriage returns with spaces. You can do this manually, or use the replace feature in Word. To open the 'Find and Replace' dialog box, pull down the 'Edit' menu and select 'Replace' - you may have to click the double arrows at the bottom of the menu to display all the entries on the menu - or you could hold down the Ctrl key and press H.

Each special character has its own code associated with it. For the carriage return this is '^p', for Tab it is '^t' and so on (you can see them all by pressing the 'More' button on the 'Find and Replace' dialog box - this will display more options - and press the 'Special' button.

The text we are editing is broken into various paragraphs with an empty line between them. In order to maintain this separation of paragraphs, we need to mark all the places where one return follows another. I usually use two tildes '~' to mark these, because that rarely occurs in a text. Fill in the fields as below and press the 'Replace all' button.


A dialog box will be shown telling you how many replacements have been made. Press OK to close it. The text will then look like this...

With the separation of paragraphs marked we can now remove all those superfluous returns. Enter '^p' in the Find what: field and a space in the Replace with: field.


Press 'Replace All' again and OK when you are told how many replacements have been made. The text will then look like this...

We need to return the paragraphs to their original form. To do this replace all the occasions of '~~' with two carriage returns, as in the following image. Again, press 'Replace All'.


The text should now look like this. We are very close to what we want, except that there are some superfluous spaces in the quote at the bottom.

To remove these, go to the 'Find and Replace' dialog box again, and enter two spaces in the Find what: field and one space in the Replace with: field. Keep pressing the 'Replace All' button until there are no more examples to replace. The text should now look like this: nicely formatted with all the separate paragraphs maintained.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Word Processing | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Keyboard shortcut of the week: undo and redo
    Just about every windows application has an 'undo' feature and most have a 'redo' feature. These are a lifesaver on those fr...
  • How to show unread messages in Gmail
    Apologies for not posting in a while. I thought that I would share this short and sweet post for those who want to list only unread messages...
  • Recovering text from Word documents (Part 1)
    If Microsoft Word runs into a problem with a file it usually offers a recover option when you open the program the next time. But sometimes...
  • Toolbars gone AWOL
    There is a bug in Windows XP that causes the toolbars in Internet Explorer and Windows Explorer (the thing that opens when you double-click ...
  • Keyboard shortcut of the week: The Case of MS Word
    When using a word processor it is quite common to forget that that the CapsLock key has been left on, or you might decide that a piece of t...
  • How to reboot Windows using the keyboard
    I was writing a post on how to reinstall the mouse using the keyboard when I realised that rebooting the PC using the keyboard would be a re...
  • Weekend Website: PortableApps.com
    I have not run this feature in ages, but I decided to bring it out of retirement to feature an excellent site: PortableApps.com . With the i...
  • Bring files back from the dead
    Even after you have deleted a file, and emptied the Recycle Bin, you may still be able to recover the file. This is because the data in the ...
  • Windows Folder Options Explained (Part 3)
    Continued from part 2... View Settings continued Hide protected operating system files (Recommended) This option is selected by default, to ...
  • Customising the Quick Access Toolbar
    In a recent post about adding buttons to the toolbars in Microsoft Office applications I pointed out that there is no way to add buttons t...

Categories

  • Audio
  • Backups
  • Blog Carnival
  • Blogging
  • CD-roms
  • Chrome
  • Command Prompt
  • Competition
  • Drives
  • DVD-roms
  • Email
  • Error Messages
  • Excel
  • Faster Windows
  • File Conversion
  • File Management
  • File Recovery
  • File Types
  • Firefox
  • Fonts
  • Freeware
  • Games
  • Graphics
  • Guest article
  • Internet Explorer
  • Jargon
  • Keyboard shortcut
  • LibreOffice
  • Linux
  • Lost document
  • Low drive space
  • Mouse
  • Networking
  • OpenOffice
  • PowerPoint
  • Printing
  • Protection
  • Purchases
  • Registry
  • Review
  • Scanning
  • Searching
  • Security
  • Startup
  • Upgrades
  • Video
  • Web feeds
  • Websites
  • Windows Crash
  • Windows Explained
  • Windows GUI
  • Windows Hangs
  • Word Processing

Blog Archive

  • ►  2012 (4)
    • ►  September (1)
    • ►  May (1)
    • ►  February (2)
  • ►  2011 (12)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ►  February (2)
    • ►  January (2)
  • ►  2010 (21)
    • ►  December (2)
    • ►  October (2)
    • ►  September (1)
    • ►  August (2)
    • ►  July (1)
    • ►  May (2)
    • ►  March (6)
    • ►  February (4)
    • ►  January (1)
  • ►  2009 (33)
    • ►  December (1)
    • ►  November (1)
    • ►  October (3)
    • ►  September (4)
    • ►  August (1)
    • ►  July (2)
    • ►  June (4)
    • ►  May (3)
    • ►  April (3)
    • ►  March (3)
    • ►  February (4)
    • ►  January (4)
  • ▼  2008 (82)
    • ►  December (2)
    • ►  November (4)
    • ►  October (3)
    • ►  September (5)
    • ►  August (4)
    • ►  July (4)
    • ►  June (6)
    • ►  May (7)
    • ►  April (10)
    • ►  March (10)
    • ►  February (14)
    • ▼  January (13)
      • Keyboard shortcut of the week: don`t bin it, delet...
      • Jargon busting: software
      • Carnival of Computer Help and Advice
      • Free Lightweight Alternatives to Bloatware
      • Keyboard shortcut of the week: jump up a level
      • Five freeware image manipulation tools
      • MS Word: replace, reformat, rejoice
      • Guest article: Computer Error Basics
      • Eject that CD or DVD the lazy way
      • Windows Task Manager Explained: Part 2
      • Windows Task Manager Explained: Part 1
      • Keyboard shortcut of the week: So what is this key...
      • 50th post and first for 2008
  • ►  2007 (47)
    • ►  December (5)
    • ►  November (6)
    • ►  October (16)
    • ►  September (12)
    • ►  August (8)
Powered by Blogger.

About Me

Unknown
View my complete profile