Asterisks

Discussion in 'Word Programming' started by S M, Feb 26, 2012.

  1. S M

    S M Guest

    Does anyone know how to write a macro that selects text with an
    asterisk in front of it?

    I get periodic updates from several users and the text will be like
    this:

    *ITEM ONE* blahblahblahblah *ITEM TWO* blahblahblahblah *ITEM THREE*
    blahblahblahblah


    If I wanted to write a macro that put a carriage return (^P) before
    the asterisk before "ITEM", what would I need to do? I would like
    them to be more easily readable, like this:

    *ITEM ONE* blahblahblahblah
    *ITEM TWO* blahblahblahblah
    *ITEM THREE* blahblahblahblah
     
    S M, Feb 26, 2012
    #1
    1. Advertisements

  2. S M

    macropod Microsoft MVP

    Joined:
    Mar 2, 2012
    Messages:
    266
    Likes Received:
    21
    Is the 'ITEM' word always present?
     
    macropod, Mar 2, 2012
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.