ms-word vba
Written: Jun-2023
Steps to create a VBA macro to colourize sentences
The following script can be added to your MS-Word VBA environment in order to quickly change the background colours of each difference sentence in your word documents. This is advantaegous if you are reviewing documents and want to be able to visualize lengths or "original versions" of sentences.
Once installed, to run the colourer, simply press addSentenceColouring
function.
To undo the red-highlights, run the removeSentenceColouring
function.
Installation
In MS-Word
- Press to open the VBA Editor.
- Insert a new module by clicking Insert -> Module.
- Copy and paste the code below into the module window.
vba :: addSentenceColouring
- In the VBA Editor, click on the Run icon, or in Word press to open the "Macro" dialog box.
- Select the "addSentenceColouring" macro and click the "Run" button.
- Select the "addRepeatedWordHighlights" macro and click the "Run" button.
- All the paragraphs in your document will be colour coded with pale pastel background colours.
Comments
New Comment