DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: How to Find and Replace in a Word document using VBA?

Do you run this code in Excel?

Do you just want make non-bold "Project:" to bold "Project:?

Then Just let .Replacement.Text = "" to .Replacement.Text = "Project" You'll get it.

BTW: Wouldn't you want "Project:" in your question, why is your code "Project" without colon?

That's make the property Text

Top comments (0)