+ Reply to Thread
Results 1 to 4 of 4

Word Macro to change Bracketed Text

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Philadelphia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question Word Macro to change Bracketed Text

    Hi,

    I need to create a word macro for a large document that would:

    Turn text inside [brackets ] into white text, including text that is bracketed in the footnotes and the Table of Contents and keep brackets visible

    Is this difficult?

    Any help is appreciated as I have little experience with Word Macros.

    Thanks!

    Russell

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Word Macro to change Bracketed Text

    more than likely, yes this is difficult, primarily because you have to search for the brackets from scratch. I seriously doubt you can do it any other way. although you can record a macro and search manually through the interface for the brackets and then see what code word produces for you. if you do that though, you should search for the brackets more than once. as in, push the ""search"" button more than once. that way, word can show you if there is a difference between the statement used the first you press the button vs. the subsequent times you press it. for instance, in excel, that similar process, when written in the VBA language, would use the following statements in order:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

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

    Re: Word Macro to change Bracketed Text

    You don't need a macro for this - it can all be done quite easily with just two wildcard Find/Replace operations. A macro solution is much more convoluted, as VBA doesn't automatically do a Find/Replace throughout the whole document.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Registered User
    Join Date
    02-19-2014
    Location
    Philadelphia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Word Macro to change Bracketed Text

    Thanks! UI ddint think of trying find/replace but that could work. Thanks for the replies.

+ 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. [SOLVED] How do you extract bracketed text from a cell (excluding the brackets) ?
    By purplerainn in forum Excel General
    Replies: 1
    Last Post: 10-08-2020, 10:00 AM
  2. [SOLVED] Macro that will turn any text (bracketed) to red
    By JasonNeedsHelp in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 11-22-2015, 08:41 PM
  3. [SOLVED] word macro to change Word Arts content continously
    By pejoi in forum Word Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2015, 04:44 AM
  4. Replies: 0
    Last Post: 04-22-2013, 12:13 PM
  5. Insert a blank row before bracketed text
    By bvlahides in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2013, 08:19 PM
  6. Replies: 0
    Last Post: 01-25-2013, 07:03 AM
  7. Loop all cells to remove bracketed text
    By gcoug in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2011, 04:38 PM

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