Results 1 to 7 of 7
  1. #1
    Star Lounger
    Join Date
    May 2003
    Location
    Pennsylvania, USA
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wildcards in Find/Replace Formatting

    I often want to remove space before paragraphs using find/replace. I know how to do this using the format/paragraph feature in find/replace.

    However, this requires that you know the amount of space you want to remove so that you can put it in the "Before" box on the Paragraph screen. Does anybody know how to put a wildcard in this box so you can do find/replace operations of the form "Find any amount of space before a paragraph and replace it with 0"? (This situation happens often if you dump a file from Access to Word--Access likes to put varying amounts of space around page breaks, for example, and when you delete the page breaks, you can get an ugly looking file.)

    Don.

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Wildcards in Find/Replace Formatting

    Hi Tom:
    NOT using wildcards:
    Find: ^w
    Replace: one space or whatever you want

    Hope this helps.

  3. #3
    Star Lounger
    Join Date
    May 2003
    Location
    Pennsylvania, USA
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Wildcards in Find/Replace Formatting

    Phil:

    No this isn't what I meant. I am referring to doing find/replaces on the FORMAT, not on the text itself. On the Find Paragraph window, I want to put a wildcard in the Space Before box to mean "any value" so that I can replace it with 0 space.

    Hope this clarifies it.

    Don.

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Wildcards in Find/Replace Formatting

    Hi Don:

    I may still not understand your question. To replace a format, you leave the Find box blank. Perhaps you could either attach a small file showing what you want, or type an example.

  5. #5
    BAM
    Guest

    Re: Wildcards in Find/Replace Formatting

    Hi Don,

    If you want to remove the formatted space before each paragraph:

    Find: ^p
    Replace:
    Format: Space before 0 pt

    In other words, find each paragraph and replace with 0 pts of space before.
    ~~~~~~~~~~~~
    Cheers!

  6. #6
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Wildcards in Find/Replace Formatting

    Aah! Now I see what he was after. Good call, BAM.

  7. #7
    Star Lounger
    Join Date
    May 2003
    Location
    Pennsylvania, USA
    Posts
    55
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Wildcards in Find/Replace Formatting

    Thanks to BAM! That's exactly what I was asking. I didn't realize that you could leave the formatting fields blank in the find part. I also didn't know that you had to put the ^p in the find box.

    This will save me a lot of headache, so thanks again!

    Don.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •