1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Dekete extra blank line on pages in WORD 2000

Discussion in 'Business Applications' started by sarainelkins, Feb 15, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. sarainelkins

    sarainelkins Thread Starter

    Joined:
    Jan 4, 2005
    Messages:
    34
    I create documents in Word Perfect and when my client is ready I dump them into Word for him and do a quick check to see if anything goofy happens in the conversion. A lot of times Word will include a blank line on some pages. Word Perfect has a feature that automatically removes a leading blank line on a page. Is there a setting in Word that will also do this? (Please, don't ask me why I have to do it this way. Just trust me. I have to convert it for the client or I'll lose the work!)
    Thanks.
     
  2. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    Is it two lines in a row or one line and you want to get rid of one?
     
  3. sarainelkins

    sarainelkins Thread Starter

    Joined:
    Jan 4, 2005
    Messages:
    34
    I have paragraphs of straight text done in Word Perfect and whenever I import it into Word 2000 there are extra blank lines at the top of some pages. Example:

    in the middle of page it might read:
    Tom drove to town. [hard return]
    [blank line okay here]
    Tim saw Tom in town. [hard return]


    I want to have the extra blank line at the TOP of a new page eliminated by Word
    Example:

    THIS IS THE TOP OF THE NEXT PAGE: [hard return]
    [extra blank line here needs not to be here]
    Tom drove to town. [hard return]
    [blank line okay here]
    Tim saw Tom in town.[hard return]


    THANKS FOR HELPING ME FIND A WAY TO ELIMINATE THESE LEADING LINES ON THE TOP OF A PAGE.
     
  4. WhitPhil

    WhitPhil Gone but never forgotten Trusted Advisor

    Joined:
    Oct 4, 2000
    Messages:
    8,684
    Instead of saving the file from WP as a Wordperfect file and then opening and converting it in Word, try saving it as an RTF file and opening that in Word?
     
  5. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    This removes two hard returns after each other.

    Code:
    Sub Remove Extra Lines()
    '
    ' Lines Macro
    '
    '
        Selection.Find.ClearFormatting
        With Selection.Find
            .Text = "^p^p"
            .Replacement.Text = "^p"
            .Forward = True
            .Wrap = wdFindContinue
            .Format = False
            .MatchCase = False
            .MatchWholeWord = False
            .MatchWildcards = False
            .MatchSoundsLike = False
            .MatchAllWordForms = False
        End With
        Selection.Find.Execute Replace:=wdReplaceAll
    End Sub
    
    open word, click on tools>macros>visual basic editor.

    paste the code then hit ctrl+s

    click on tools>macors>macros.
    click on Remove Extra Lines and click on run.

    thanks to rollin_again
     
  6. sarainelkins

    sarainelkins Thread Starter

    Joined:
    Jan 4, 2005
    Messages:
    34
    I need to Word remove ONLY the EXTRA blank line at the top of a new page when they occur during the conversion from WordPerfect to Word. Does this macro remove them ALL or just double HRTs at the top of the page? I have no idea how to read the code or I wouldn't ask you to explain it. I hope that's okay. Thanks. S.
     
  7. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    Try it. :)
     
  8. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/544427

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice