+ Reply to Thread
Results 1 to 5 of 5

{Word macro} Are there any ways to highlight all lines enclosed by two types of symbols

  1. #1
    Registered User
    Join Date
    12-19-2014
    Location
    Hong Kong
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    6

    {Word macro} Are there any ways to highlight all lines enclosed by two types of symbols

    I have asked this question before but I forget to mention that I want a Microsoft word macro instead of excel macro. So I ask this question again.

    Hello everyone.

    I want to find a macro or a way to highlight all lines enclosed by two types of symbols.

    For example,

    the document:
    Line 1
    !!!
    Line 3
    Line 4
    Line 5
    Line 6
    Line 7
    Line 8
    Line 9
    !!!
    Line 11
    Line 12
    Line 13
    Line 14

    After executing the macro or do the steps:
    Line 1
    !!!
    Line 3(Line To be Highlighted)
    Line 4(Line To be Highlighted)
    Line 5(Line To be Highlighted)
    Line 6(Line To be Highlighted)
    Line 7(Line To be Highlighted)
    Line 8(Line To be Highlighted)
    Line 9(Line To be Highlighted)
    !!!
    Line 11
    Line 12
    Line 13
    Line 14

    Thank you very much.

    I want to solve this problem for a long period of time!

  2. #2
    Registered User
    Join Date
    09-28-2014
    Location
    Hackney, South Australia
    MS-Off Ver
    MS Office 2003
    Posts
    15

    Re: {Word macro} Are there any ways to highlight all lines enclosed by two types of symbol

    I don't think there is a macro that does what you want in Word.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: {Word macro} Are there any ways to highlight all lines enclosed by two types of symbol

    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: {Word macro} Are there any ways to highlight all lines enclosed by two types of symbol

    You have posted this question multiple times since December 2014:

    12-18-2014: http://www.excelforum.com/word-forma...tml?highlight=


    12-20-2014: http://www.excelforum.com/word-progr...tml?highlight=


    03-04-2015: http://www.excelforum.com/word-forma...f-symbols.html

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: {Word macro} Are there any ways to highlight all lines enclosed by two types of symbol

    You don't even need a macro for this! It can be done with a wildcard Find/Replace, where:
    Find = [\!]{3}*[\!]{3}
    Replace = ^&
    with the 'Replace' format set to bold.

    This will apply bold to the !!! as well, but you can remove that with another Find/Replace.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 03-23-2015, 06:35 PM
  2. Help me write a word macro to highlight all the areas enclosed by two types of symbols.
    By studyboymark in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2014, 05:20 PM
  3. Replies: 1
    Last Post: 12-19-2014, 04:23 PM
  4. [SOLVED] To copy expressions enclosed between < > symbols
    By rpa25 in forum Excel General
    Replies: 8
    Last Post: 08-05-2012, 12:01 PM
  5. what other ways to get a picture or diagram of types of bacteria
    By SARS in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-27-2006, 02:10 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1