Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word, macro, (2003, i think, just give me a tool where it will work. I wi

    Hi,

    Can some1 help me with this? Appreciate any help.

    I have a large word document with over 800 pages.

    In this document after a few useful lines from different authors, I have the names, times, locations etc, of the authors. I need to delete this info as this is taking too much of the document.

    I must note that even though the names, times, locations, etc are different, all these unwanted lines start with the same word "post" and end with the same word, for example, "end".

    Something like,

    I was in vegas myself. Such a nice place. (useful info)

    Post by tony,
    date 10-03-99
    loc - malabu
    end (the stated four lines unwanted info)

    Yes i agree. Lived there for two years before moving to birmingham. (useful)

    Post ,
    date
    loc -
    end (the stated four lines unwanted info)


    this reoccurs throught the document.

    I was hoping if some1 could tell me how to make a macro or something this will automatically delete "post-------------------end" part in the whole document.


    PLEASE HELP. Doing this manually will kill me.
    Kind Regards,

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Word, macro, (2003, i think, just give me a tool where it will work.

    Added later: I forgot to mention an essential point - thanks to Jefferson Scher for alerting me. The addition is indicated in Italics below

    Welcome to Woody's Lounge!

    You don't need a macro for this:
    - Select Edit | Replace...
    - Click More, then tick the 'Use wildcards' check box.
    - Enter <code>Post*end</code> in the Find what box.
    - Leave the Replace with box blank.
    - If you are certain that there are no instances of text between "Post" and "end" that you want to keep, click Replace All.
    - Otherwise, click Find Next, then either Replace or Find Next depending on whether you want to remove or keep the text.

    If you want to remove the paragraph break after "end" too, you can search for <code>Post*end^13</code>.

  3. #3
    New Lounger
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word, macro, (2003, i think, just give me a tool where it will work.

    Hi,

    Thanks for ur help. It didnt do anything.

    Actually,

    These are a couple of actual examples of the repeating units.

    Post Extras:

    runout_mick
    setting the world right


    Reged: 04/28/05
    Posts: 2025
    Loc: Canadian Neteller Closed Re: Controversy with Sheets?!?! [Re: curtains]
    #5357293 - 04/08/06 07:51 PM Edit Reply Quote Quick Reply


    Post Extras:

    LionelHutz00
    Pooh-Bah


    Reged: 11/21/05
    Posts: 2179
    Loc: ON UR LEFT RAIZIN UR C-BETS Re: Controversy with Sheets?!?! [Re: runout_mick]
    #5357782 - 04/08/06 09:03 PM Edit Reply Quote Quick Reply


    Hope this helps. So i want to delete everything from Post to Reply.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Word, macro, (2003, i think, just give me a t

    When you Find and Replace using wildcards, the text is cAsE sensitive and needs to match exactly. See the attached screen shot for reference.
    Attached Images Attached Images

  5. #5
    New Lounger
    Join Date
    Mar 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word, macro, (2003, i think, just give me a t

    Ty very much mate.
    Really appreciate it.

    You r a HERO.

    Cheers.

Posting Permissions

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