Consulting

Results 1 to 5 of 5

Thread: VBA Code to change the color of a specific word in the document?

  1. #1

    VBA Code to change the color of a specific word in the document?

    Hello,

    I have a big word document which is an essay for my school and I want to change the font color of some words to be different. Since there are a lot of words doing it manually is painstaking and takes wayyy to much time and I would want to know if there would be some VBA code to change the font color of a word in the document. For example, I want to change the color from black(which is the default) to red or blue. How can I do this?

  2. #2
    You don't really need a macro for this. You can use the replace function CTRL+H to replace the word and format it.
    If you have several different words to format, you could use the Find and replace (with table defined formatting) option in https://www.gmayor.com/document_batch_processes.htm to process them all sequentially.
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    Quote Originally Posted by gmayor View Post
    You don't really need a macro for this. You can use the replace function CTRL+H to replace the word and format it.
    If you have several different words to format, you could use the Find and replace (with table defined formatting) option in https:// www. gmayor. com/document_batch_processes.htm to process them all sequentially.
    I know what you are saying but I like to do it more using VBA as this sounds more interesting.

  4. #4
    Much thanks for the nitty gritty data - this is by and large the thing I was searching for! I need to impart to you one choice for taking care of the issue of composing an exposition and some other composed work - I generally go to buy college papers in such cases - this saves my time and simultaneously the outcomes are consistently sure without copyright infringement

  5. #5
    Moderator VBAX Guru Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    3,897
    Location
    Quote Originally Posted by amandagreen View Post
    I need to impart to you one choice for taking care of the issue of composing an exposition and some other composed work - I generally go to buy college papers in such cases - this saves my time and simultaneously the outcomes are consistently sure without copyright infringement
    Surely this amounts to cheating.
    Remember To Do the Following....
    Use tags when posting code to the thread,
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Tags for this Thread

Posting Permissions

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