From: carter@cemvax.cem.msu.edu (Tom Carter)
Newsgroups: comp.os.ms-windows.apps,comp.os.ms-windows.misc
Subject: re: Help : Format Prob in WinWord 2.0
Date: 8 Jan 1993 13:37:34 GMT
Organization: Michigan State University, Chemistry Dept., E. Lansing, MI
NNTP-Posting-Host: photon.cem.msu.edu

In article <1993Jan6.222812.4748@verifone.com> vinaya_s1@verifone.com writes:
>Hello All!
>
>I have an existing document  [ wors star 4.0 and Multimate ] . I plan to move
>form feeds ( hard returns ) inside it. I am interested in knowing how to
>automatically  remove these hard returns from a 1. marked section
>2. A paragraph 
>3. Whole document.
>
>I could not find anything in help. I will be thankful if anyone  can
>suggest how  to create a macro or some other means to remove the hard returns
>from a marked block.  can anyone at Microsoft please help on this.
>The document is huge and it cannot be formatted by manually deleting the form 
>feeds and then giving the format command.
>
>My email addr is : vinaya_s1@blrv1.verifone.com
>Thanks in advance.
>Vinaya S.
>PS : Is there any option in Winword 2.0 on how to format a block of text 
>ignoring the hard returns ?
>
>=====
>it to MS Word for Windows  2.0 . The problem is that the document has a lot
>

In WinWord, open the online help and search for:
"searching for special marks"

There you will find that in the Replace or Find dialogs, you may search for 
hard page breaks by entering a "^d" in the find field (the following is from 
the online help):

Page break (-----):	^d   Finds page breaks inserted by pressing 
                         CTRL+ENTER. Must be lowercase.

However, I think that what you're REALLY asking is how to remove hard 
carriage returns (called "paragraph marks" in WinWord). If so, write or 
record a macro to do the following: 

Replace double carriage returns with some unique string like @#*& (i.e. 
search for "^p^p" and replace with "@#*&"). This preserves the true paragraph 
boundaries.

Replace single carriage returns with a space character (i.e. search for "^p"
and replace with " ").

Search for @#*& and replace with "^p" to restore the true paragraph 
boundaries.

You're done!

In fact here's the on I use:

==========Begin macro =====================
EditReplace .Find = "^p^p", .Replace = "@#*&", .WholeWord = 0, \
.MatchCase = 0, .Format = 0, .ReplaceAll = 1
EditReplace .Find = "^p", .Replace = " ", .WholeWord = 0, \
.MatchCase = 0, .Format = 0,.ReplaceAll = 1
EditReplace .Find = "@#*&", .Replace = "^p", .WholeWord = 0, \
.MatchCase = 0, .Format = 0,.ReplaceAll = 1
EditReplace .Find = "^p", .Replace = "^p^p", .WholeWord = 0, \
.MatchCase = 0, .Format = 0,.ReplaceAll = 1
==========End macro========================

This actually places an empty paragraph in between adjacent paragraphs.

Place the above between the "SUB MAIN" and "END SUB" statements of an empty 
macro (choose Tools Macro and then type a name in the Macro Name box and 
press the Edit button).
You're done!
HTH

===========================================================================
|        Tom Carter                    |     carter@cemvax.cem.msu.edu    |
|  Michigan State University           |     carter@msucem.bitnet         |
|    Chemistry Department              |                                  |
===========================================================================

Newsgroups: comp.os.ms-windows.apps