Re: macro to take out spaces

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: boris (anonymous_at_discussions.microsoft.com)
Date: 10/25/04


Date: Mon, 25 Oct 2004 07:06:29 -0700

Suzanne, thanks again, so other than tables, there
shouldn't be any reason that the double paragraph mark
would not be found? Odd, as this document is just one
long series of lines, which now read text, carriage,
carriage, text, etc. Cannot figure it out for the life
of me.

If you can think of anything else, let me know. Would it
be possible for me to email the doc offline (at least a
portion of it) to see if you notice anything? I keep my
machine updated with anti-virus every day, so there
should not be a threat.

Boris
>-----Original Message-----
>If you expand the Find and Replace dialog (click More)
and click on Special,
>you will find a list of such characters. The list is
different for "Find
>what" and "Replace with," and both change if you enable
wildcards. For a
>complete list, see "WD97: Control Codes to Use with Find
and Replace (Edit
>Menu)" at http://support.microsoft.com/?kbid=197855
>
>It has been discovered that for some reason a Replace
operation won't remove
>an empty paragraph before a table. This is inconvenient,
but there is
>apparently no workaround (not even through VBA IIRC).
>
>--
>Suzanne S. Barnhill
>Microsoft MVP (Word)
>Words into Type
>Fairhope, Alabama USA
>Word MVP FAQ site: http://word.mvps.org
>Email cannot be acknowledged; please post all follow-ups
to the newsgroup so
>all may benefit.
>
>"boris" <anonymous@discussions.microsoft.com> wrote in
message
>news:00e901c4ba48$15211dc0$a401280a@phx.gbl...
>> no sooner do I say it's exactly what I needed, than I
come
>> up with another problem...first of all, is there some
>> place that lists all the combinations like ^p which
>> represent non-alphanumeric characters? second, for
some
>> reason, when I first searched for ^p^p and replaced
with
>> ^p, it found several matches. However there are still
>> some that appear to be there (I have the paragraph
marks
>> on), and yet it won't find those when I run the search
>> again. Any idea why this might be? Thx for the
continued
>> help.
>>
>> Boris
>> >-----Original Message-----
>> >Of course. Search for <space>^p and replace with ^p.
If I
>> were doing this, I
>> >would then search for ^p^p and replace with ^p.
>> >
>> >--
>> >Suzanne S. Barnhill
>> >Microsoft MVP (Word)
>> >Words into Type
>> >Fairhope, Alabama USA
>> >Word MVP FAQ site: http://word.mvps.org
>> >Email cannot be acknowledged; please post all follow-
ups
>> to the newsgroup so
>> >all may benefit.
>> >
>> >"boris" <anonymous@discussions.microsoft.com> wrote in
>> message
>> >news:00d501c4ba3c$f330c400$a401280a@phx.gbl...
>> >> Jezebel, thanks very much. I did multiple searches
for
>> >> double spaces and replaced with single. I still
have
>> the
>> >> following problem. I have:
>> >>
>> >> 1) lines ending in carriage return, with the
following
>> >> lines being just carriage returns
>> >> 2) line ending in carriage return, with the
following
>> >> lines being space followed by carriage returns
>> >> 3) after taking out all double spaces that were
leading
>> >> each line, I now still have one space at the
beginning
>> of
>> >> those lines, but cannot search for simply single
spaces,
>> >> since this would take every space. Is there a way
to
>> find
>> >> carriage return followed by space, and replace it
with
>> >> just carriage return?
>> >>
>> >> I think what I need is to know how to represent a
>> carriage
>> >> return in the find/replace dialogue. Then I can
come up
>> >> with the combinations I need to find them. If you
>> happen
>> >> to know what tab is, that would help also.
>> >>
>> >> Thanks much.
>> >>
>> >> boris
>
>.
>



Relevant Pages

  • Re: The dreaded blank page at the end of a Word document
    ... If there's just _one_ paragraph mark leaking over onto the blank page, ... PS - Suzanne, I read the document you referenced. ... Microsoft MVP (Word) ...
    (microsoft.public.word.docmanagement)
  • Re: How to center a figure in the middle of an outlined paragraph?
    ... "Suzanne S. Barnhill" wrote: ... different paragraph style for the figure and caption. ... This works quite well for justifying text while centering the figure. ...
    (microsoft.public.word.docmanagement)
  • Re: Removing redundant characters
    ... the Word Help System has some excellent help on wildcards. ... Why does it fail to replace the last paragraph mark? ... If you just delete a para mark, you lose the style for that paragraph. ...
    (microsoft.public.word.formatting.longdocs)
  • Re: Removing redundant characters
    ... the Word Help System has some excellent help on wildcards. ... > forever if your document is terminated by a blank paragraph as you ... > delete the last paragraph mark - ever. ... > If you just delete a para mark, you lose the style for that paragraph. ...
    (microsoft.public.word.formatting.longdocs)
  • Re: Global command for converting linked graphics to embedded?
    ... I have seen quite a few questions repeated today and assumed that the reason for this was that the Web portal is not working correctly. ... Microsoft MVP (Word) ... "Suzanne S. Barnhill" wrote in message ...
    (microsoft.public.word.docmanagement)