• Replace colours throughout documents (Word 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Replace colours throughout documents (Word 2003)

    • This topic has 10 replies, 5 voices, and was last updated 20 years ago.
    Author
    Topic
    #418846

    Dear Loungers,

    I have a few dozens of long documents that were created with old template. The old template uses Green color throughout the headings, table borders (including shading). We are migrating to new colour scheme. My problem is that the documents were not properly style-d, hence changing the styles do not create clean documents. Is there a quick way (VBA or trick) to replace all greens that appear throughout the document to, say, blue?

    Any advise is very much appreciated.

    Regards
    Rid

    Viewing 0 reply threads
    Author
    Replies
    • #943939

      Not a trick, but doesn’t a simple Search and Replace work? i.e. Under Edit –> Replace leave the Find what and Replace with boxes empty, but while the curser is in each of these boxes click on Format (after clicking on More) then Font and select the find colour. Do the same with the curser in the replace box.
      Good luck

      • #943956

        Is your use of curser a Freudian slip?!

        John

        • #943987

          Suppose so, happens whenever I think of MS evilgrin – Now John, you must stop pirate jollyroger these ‘serious’ threads.

          I was actually impressed that I got a reply in before Hans – he must have had a lie-in this morning. doze

      • #943965

        Thank you.

        It works for text, but how about cell border and Shading; text box fill colour?

        Regards
        Rid

        • #943968

          Would it be possible to create a custom table AutoFormat and apply that to all tables, or do the tables have individual characteristics?

          The following macro will change the fill color for all text boxes from green to blue:

          Sub ColorTextBoxes()
          Dim sh As Shape
          For Each sh In ActiveDocument.Shapes
          If sh.Type = msoTextBox Then
          If sh.Fill.ForeColor = vbGreen Then
          sh.Fill.ForeColor = vbBlue
          End If
          End If
          Next sh
          End Sub

          You may have to use different colors.

          • #943973

            Thanks Hans,

            You read my ‘nightmare’ well. Yes, if the users could use different formats on text (even after styles are created for them), you could imagine how messy the tables produced. I am trying to avoid re-creating the tables, if I could simply “search and replace” the colours and shadings.

            Regards,
            Rid

            • #943975

              But do you want the tables to remain messy, or would you prefer to impose a uniform formatting? If you allow the mess to remain, you’ll have the same problem next time.

            • #944036

              Hans,

              In this case, the documents do not ‘deserve’ 100% treatment anymore, as they will become obsolete by the end of this year. But the boss still wants to do the extra steps and wants the colours in the documents to be changed. In other words, I want easy way out, if it is at all possible. 🙂 I don’t mind using Table Auto Format if the tables have patterns. But the cells are merged here and there; one cell of a row is shaded; whilst other similar tables are not. To put it crudely, I don’t know what the creators were doing.

              Regards
              Rid

            • #944090

              It’s probably not as easy as you’d hoped, but it’s certainly possible to do something like this from RTF (where it would be a fairly straightforward serach/replace of one color-code for another).

              If possible, could you post a pair of (short) documents — one “before” with the green you don’t want, and one “after”, with the color you want instead?

            • #944440

              Thank you everyone and sorry for replying late.

              The good news is I have managed to convince the boss to use PDF instead. I used plug-in to Acrobat to convert the old colours to the new ones.

              Again thank you.

              Regards
              Rid

    Viewing 0 reply threads
    Reply To: Replace colours throughout documents (Word 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: