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.

Macro that highlights specific parts of a document in MS Word 2007

Discussion in 'Business Applications' started by cundango, Jun 26, 2010.

Thread Status:
Not open for further replies.
  1. cundango

    cundango Thread Starter

    Joined:
    Jun 26, 2010
    Messages:
    2
    Hello all!
    The macro has to do the following:
    Find the next word in the document that ends with "##"
    Highlight that word and the following bullet in red.
    Find the next word in the document that ends with "##"
    Highlight that word and the following bullet in blue.
    Repeat until end of document alternating between those two colors.
    Here is an example of how the end result should look like:

    • Another day.
    house##

    • Hello all. Blah blah blah blah.
    • Goodbye all.
    window##

    • Yes sir.
    • No sir.
    apple##

    • Open book.
    • Close book.

    Thanks for any help you can give me,
    Pete
     
  2. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,568
    First Name:
    Hans
    Have you tried recording a macro?
    Start macro recorder and then do what you want.

    After you finished one then stop recording, open the macro to edit and see how it works.

    Most of us 'geniuses' started that way and it gives insight to what really happens.
    If your're having trouble just post a sample document, Okay? :)
     
  3. cundango

    cundango Thread Starter

    Joined:
    Jun 26, 2010
    Messages:
    2
    Recording a macro usually works for me but sadly not in this case. I'll keep trying though and if I can get it to work I'll post the solution here, hopefully it can help someone else.

    Thanks!
     
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!

Loading...
Thread Status:
Not open for further replies.

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

  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