I want to make macro in Word to find "the" in document and replace it with "THE". Only words which have space before and after "the" should be changed and the in these or words like that should not change. How can I write commands for it in Word. I want to run it in command prompt. Which command is required to execute it?
Zaina jee
Recommended Answers
Jump to PostHave you considered just using the "Find and Replace" tool? You would just tell word you want to find " the " and replace it with " THE ". Tell the tool to match the case in the advanced options.
All 4 Replies
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Zaina jee
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Zaina jee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.